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!
The record type [RECORD.TYPE.EMPLOYEE] is invalid.
I am using a Suitelet where I am passing in the Record Type.
Here is the code I am trying to execute:
const rec = record.load({
type: recordObj.RecordType,
id: recordObj.Id
});
The variable recordObj.RecordType = 'record.Type.EMPLOYEE'
I get the error: The record type [RECORD.TYPE.EMPLOYEE] is invalid.
If I replace type: recordObj.RecordType, with
type: record.Type.EMPLOYEE,
It works without any issues.
The problem seems to be with the use of a variable, is there any way to make this work.