A user wants to update body fields of records locked by a workflow.
Note: We are unable to load records locked by workflow using SuiteScript through record.load(options).
Solution
The following code snippet sets the Memo field to ‘Testing’ on a Sales Order which has an internal id of 440 and is locked by a workflow.
Note: Fields that can be updated are only limited to body fields.
SuiteScript 2.0:
record.submitFields({
type: record.Type.SALES_ORDER,
id: 440,
values: {
'memo': 'Testing SO'
}
});