currentRecord.get.promise()

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

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

Note:

The parameters and errors thrown for this method are the same as those for currentRecord.get(). For more information about promises, see Promise Object.

Returns

Promise Object

Synchronous Version

currentRecord.get()

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 instance.

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete promise script example, see Promise Object.

          //Add additional code 
...
var record = currentRecord.get.promise();
...
//Add additional code 

        

Related Topics

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

General Notices