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.
Setting Department On Item Fulfillment
I am trying to set department on Item Fulfillment transactions. When I use the debugger, it shows that the department is set before and after the submit. However; when I navigate to the record itself, the department is still empty. I was able to run the same code on Vendor Bill and Invoice transactions and it worked fine. Does anyone know what could be the problem?
Here is my code:
function SetDepartment()
{
var transRecord = nlapiLoadRecord('itemfulfillment', '823');
transRecord.setFieldValue('department', '5');
nlapiSubmitRecord(transRecord, false, true);
}
0