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.
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