Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=CurrentRecord.type for more information.
N/currentRecord Module
CurrentRecord.type
Property Description:
The current record’s type.
Note the following:
On an instance of a standard record type, this property is represented by a value from the record.Type enum.
On an instance of a custom record type, this value is populated by the custom record type’s string ID. For help finding this ID, see Custom Record.
Type:
string (read-only)
Supported Script Types:
Client scripts
For more information, see SuiteScript 2.0 Client Script Type.
Module:
N/currentRecord Module
Since:
2016.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=CurrentRecord.type
Example:
// Code Example 1
//Add additional code
//...
var recordtype = currentRecord.type;
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4637576636.html