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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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