Record.type
Property Description |
The record type. Note the following:
This property is not available to subrecords. (dynamic and standard modes — see SuiteScript 2.x Standard and Dynamic Modes) |
Type |
string (read-only) |
Module |
|
Sibling Object Members |
|
Since |
2015.2 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/record Module Script Samples.
// 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
Supported standard record types are described in the SuiteScript Records Browser. Refer also to SuiteScript Supported Records. For help working with custom record types, see Custom Record.