NETSUITE - Error INVALID_KEY_OR_REF when I try to enter the Unit of Measure when creating a sales Order

234 views Asked by At

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:

ERROR MESSAGE IMAGE

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?

0

There are 0 answers