currentRecord.get()

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Retrieves a currentRecord object that represents the record active on the current page.

Returns

currentRecord.CurrentRecord

Supported Script Types

Client scripts

For more information, see SuiteScript 2.x Client Script Type.

Governance

None

Module

N/currentRecord Module

Since

2016.2

Errors

Error Code

Thrown If

CANNOT_CREATE_RECORD_INSTANCE

The current record page is not scriptable or an error occurred when creating the record object.

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 record = currentRecord.get();
...
//Add additional code 

        

Related Topics

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

General Notices