Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Loading / Creating Custom records in SuiteScript 2
Hello,
I'm trying to use record.load or record.create with custom record and getting errors.
How this syntax needs to be ?
var customRecordToLoad = record.load({
type: record.Type.customrecord_testrecord,
id: 4,
isDynamic: true,
});
ERROR message :
{"type":"error.SuiteScriptError","name":"SSS_MISSING_REQD_ARGUMENT","message":"load: Missing a required argument: type","stack":["createError(N/error)","execute(/SuiteScripts/Accountor Enterprise Solutions/aes_create.js:22)","createError(N/error)"],"cause":{"name":"SSS_MISSING_REQD_ARGUMENT","message":"load: Missing a required argument: type"},"id":"","notifyOff":false}
Can anyone help me with this?