I am using suite script (API version is 1.0). I have created a Saved search for transaction in netsuite account. Now I want to pull the data from saved search into my database, but before this just want to list the columns present in saved search on my mapping screen.
For this I have written below script:
function GetColumnName()
{
var s = nlapiLoadSearch('transaction', 'customsearchtestsavedsearchwithcustfield');
var columns = s.getColumns();
return columns;
}
but in above code getColumns function is not working and netsuite giving below error (error does not say much)
TITLE
**UNEXPECTED_ERROR**
TYPE
System
DATE & TIME
8/17/2017 4:34 am
DETAILS
Can any one please help me regarding this.
Thanks