Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Record.type for more information.
N/record Module
Record.type
Property Description:
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.
(dynamic and standard modes — see SuiteScript 2.0 – Standard and Dynamic Modes)
Type:
string (read-only)
Supported Script Types:
Client and server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/record Module
Sibling Object Members:
Record Object Members
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Record.type
Example:
// Code Example 1
// 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.
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4296706984.html