Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Why do I get this error: "type":"error.SuiteScriptError","name":"INVALID_RCRD_TYPE","message":"The r
Here is the code:
let curRecord = await record.load.promise({
type: recordObj.recordType,
id: recordObj.recordId,
isDynamic: true
});
recordObj.recordType = 'record.Type.WORK_ORDER',
gives error: "type":"error.SuiteScriptError","name":"INVALID_RCRD_TYPE","message":"The record type [RECORD.TYPE.WORK_ORDER] is invalid."
The docs say 'record.Type.WORK_ORDER' is a valid enum
Tagged:
0