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
Create Fulfillment Packages with Server script
I'm trying to create packages with Server SuiteScript... it's not looking good. Anyone done this or know if it's even possible?
Quickly I tried:
function OnBeforeSubmit(type) { var currentRecord = nlapiGetNewRecord(); if(currentRecord == null) { nlapiLogExecution ('DEBUG', 'Failed to get handle to record'); return; } // try and get a package item count var lineCount = currentRecord.getLineItemCount('packages'); // also tried 'package' if(lineCount != null) { nlapiLogExecution('DEBUG', 'There are ' + lineCount + ' packages'); } else { nlapiLogExecution('DEBUG', 'Error getting package count'); return; } return; }However this returns -1 as the count for the packages (not surprised, I was just taking guesses on how to get to this data)
Steve Klett | Senior Developer
NetValue Technology
0