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
battk
01/07/2020, 11:11 AM
The general rule for dynamic mode is to set fields in the same order you would in the ui
battk
01/07/2020, 11:14 AM
If your field is not set, fair chance it was overwritten by setting another field
battk
01/07/2020, 11:14 AM
Try setting terms last
battk
01/07/2020, 11:15 AM
I personally would recommend avoiding dynamic mode unless you have a specific reason to use it