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.
CASE 705104: nlapiGetLineItemValue is throwing UNEXPECTED ERROR
I have been testing a server Suitescript that is triggered before save for a sales order and it looks through the line items looking for information.
When the script gets to this line:
var itemID = nlapiGetLineItemValue('item', 'item', 0);
It creates an unexpected error. I have tried the same thing with a few other columns as well as looking for the information after submit using the record object to no avail. I think it maybe something specific to this account as other scripts I've written for my other account seems to be fine.
Thanks in advance for your help!
0