Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Error creating an ItemFulfillment
I've made an attempt to create an ItemFulfillmentPackageList and ItemFulfillment via a Suitelet, but received the following error message.
Error: INVALID_RCRD_TYPE
The record type [ITEMFULFILLMENTPACKAGELIST] is invalid.
Here is the code snippet I used to create the records:
var filters = new Array();
filters[0] = new nlobjSearchFilter('tranId', null, 'is', '123');
var columns = new Array();
columns[0] = new nlobjSearchColumn( 'internalId' );
columns[1] = new nlobjSearchColumn( 'entity' );
var searchresults = nlapiSearchRecord( 'salesorder', null, filters, columns );
if (searchresults != null && searchresults != '') {
// We found an internal ID of the sales order, so this record must exist.
var orderInternalId = searchresults[0].getValue("internalId");
//var order = nlapiLoadRecord("salesorder", orderInternalId);