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!
unable to set transaction custom column fields on update
My Suite Script is attempting to update a transaction custom column field. The field has a value equal to null before the update. The value I am updating the field with does not stick. I have pasted a snippet of my code below--with some comments on what I am seeing when I run it.
salesorder.setLineItemValue('item', 'custcol_weight_unit', j, 'test'); //this is just a free form text field.
nlapiLogExecution ('DEBUG', 'Value: ' + salesorder.getLineItemValue('item', 'custcol_weight_unit', j)); // this will output 'Value: null'
Any help much appreciated.
0