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.
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.
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