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.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Inventory Detail Error in Transfer Order TransformRecord
Trying to code a Suitelet to fulfill a TO, keep getting the error "The total inventory detail quantity must be 1." Code is below. Any ideas? I've gone in so many circles trying to get this to work....must be missing something very minute
var fulfillment_record = nlapiTransformRecord('transferorder', 534568, 'itemfulfillment', {recordmode: 'dynamic'}); fulfillment_record.selectLineItem('item', 1); fulfillment_record.setCurrentLineItemValue('item', 'quantity', 1); fulfillment_record.setCurrentLineItemValue('item', 'itemreceive', 'T'); var subrecord = fulfillment_record.createCurrentLineItemSubrecord( 'item', 'inventorydetail'); subrecord.selectNewLineItem('inventoryassignment') ; subrecord.setCurrentLineItemValue('inventoryassignment', 'quantity', 1); subrecord.setCurrentLineItemValue('inventoryassignment', 'binnumber', 134); subrecord.commitLineItem('inventoryassignment'); subrecord.commit(); fulfillment_record.commitLineItem('item'); var id = nlapiSubmitRecord(fulfillment_record, false, true); 0