Netsuite gives me an error when I try to enter the Unit of Measure when creating a sales order from SuiteScript with a Client Script.
PART OF CODE:
so.setCurrentSublistValue({
sublistId:'item',
fieldId:'units',
value:'Each', //resultRange[i].getValue({name: 'units'}),
ignoreFieldChange: true,
forceSyncSourcing: true
});
Error message:
I have tried with Name, Plural Name, etc.
I need to know how I should load this field, to possibly bring it with SuiteQL from Units Type records, but I can't get it to accept anything by testing.
can someone please help me?