User encounters error: “RCRD_LOCKED_BY_WF” when loading a record that is locked by a workflow through Lock Record action when using SuiteScript through record.load(options)
Solution:
Utilize the search.lookupFields(options) API
Example: Using N/Search module in SuiteScript 2.0,
search.lookupFields({
type: search.Type.CUSTOMER,
id: '123',
columns: 'companyname'
})