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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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