The record type. Note the following:
- When working with an instance of a standard NetSuite record type, set this value by using the record.Type enum.
- When working with an instance of a custom record type, set this value by using the custom record type’s string ID. For help finding this ID, see Custom Record.
This property is not available to subrecords.
// Add additional code
...
// Start the process of creating an employee record.
var employeeRecord = record.create({
type: record.Type.EMPLOYEE,
isDynamic: true
});
// Start the process of creating an instance of a custom record type.
var customRecord = record.create({
type: 'customrecord_book',
isDynamic: true
});
...
// Add additional code