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