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.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Retreiving quantitypacked on Sales Order
I am trying to retrieve the count of "Packed" status against a sales order in SuiteScript. The code below works fine for 'quantity', but fails to get 'quantitypacked' - it just returns null. I've confirmed that the name of the field is correct. I've tried creating a custom field which sources {quantitypacked} but when I use that I get the error that '{quantitypacked} does not exist'.
var salesOrder = nlapiLoadRecord('salesorder', 1055); //load record with id 1055
var i = 3; //get row 3
var quantity = salesOrder.getLineItemValue('item', 'quantity', i);
var quantityPacked = salesOrder.getLineItemValue('item', 'item.quantitypacked', i);
0