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
Can't get 'tranid' from sales order script...
My script has a section (it's triggered on save of the sales order) which states:
var orderno = nlapiGetFieldValue('tranid');
nlapiSubmitField('customer', customer, 'custentity_soswreg', (" On "+orderdate+" a quantity of "+ThisRegQuant+" was added with sales order "+orderno))
However, the orderno (which is actually the 'tranid') is not sent to the customer record correctly.... It ends up as "To Be Generated"....
I understand that the order number does not exist until the record is saved, but is there some way I can get it and send it to the customer record anyway? Thanks in advance.
0