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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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