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!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
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?