Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Retrieving package dimensions from an item record (client script)
Hello,
I am trying to get package dimensions from an item record from a client script. Presently I have some code that accesses inventoryitem using nlapiLoadRecord.
Following
https://system.netsuite.com/help/helpcenter/en_US/RecordsBrowser/2013_2/Records/inventoryitem.html
I've attempted to get access to the package data. Using
itemRecord.getFieldValue('shippackage');
Results in it returning "1". I'm assuming this is the line number corresponding to the package in the shipping setup.
If I alert the following:
alert('Dims = ' + itemRecord.getFieldValue('packagelength') + ' x ' + itemRecord.getFieldValue('packagewidth') + ' x ' + itemRecord.getFieldValue('packageheight'));
I get "null x null x null". I know for a fact this package I have this item set up with has dimensions.