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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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