I am trying to set TERMS field using suitscript bu...
# suitescript
a
I am trying to set TERMS field using suitscript but not able to do so .. Here is my code : var salesOrder = record.create({ type: record.Type.SALES_ORDER, isDynamic: true, }); salesOrder.setValue({ fieldId: 'terms', value: "18" });
b
The general rule for dynamic mode is to set fields in the same order you would in the ui
If your field is not set, fair chance it was overwritten by setting another field
Try setting terms last
I personally would recommend avoiding dynamic mode unless you have a specific reason to use it
a
ok .
yup .. you were right .. Working fine now..
thanks