CurrentRecord.type

Note:

The content in this help topic pertains to SuiteScript 2.0.

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.x Client Script Type.

Module

N/currentRecord Module

Since

2016.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/currentRecord Module Script Samples.

          //Add additional code 
...
var recordtype = currentRecord.type;
...
//Add additional code 

        

Related Topics

currentRecord.CurrentRecord
N/currentRecord Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices