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.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
nlapiGetLineItemText
Hi All,
I am trying to get the text from a select field when i save a sales order and strangely the api doesnt seem to be working. I have a custom column field which is a list record. A list of custom records are sourced into this field when another line item field is selected.
when the order is saved i am running the following code: -
for (var i=1;i <= nlapiGetLineItemCount('item');i++) { alert(nlapiGetLineItemText('item','custcol_tariff_package',i)); alert(nlapiGetLineItemValue('item','custcol_tariff_package',i)); } When i save the sales order with one line item on it the first alert displays nothing, the second displays "90" which is the id of the custom record selected in that field.
0