Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
SuiteScript Newbie Question - Sales Order List???
Hello All,
I am trying my hand at learning SuiteScript and have attempted to create a suiteLet list of sales orders. Can someone out there take a look at my code and tell me were I am going wrong? I get the list to pull up but never any results.... I suspect the issue is in the for loop but not sure.
function salesOrderMSG(request, response)
{
var list = nlapiCreateList('Sales Order Center Cookie');
list.setStyle(request.getParameter('grid'));
list.setScript(239);
var column = list.addColumn('number','text', 'Number', 'LEFT');
column.setURL(nlapiResolveURL('RECORD','salesorder'));
column.addParamToURL('id','id', true);
list.addColumn('trandate','date', 'Date', 'LEFT');
0