Modules

filter

 

Objects/Functions

module (N/currentRecord)

SuiteScript 2.0

currentRecord.get.promise()

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=currentRecord.get.promise() for more information.

N/currentRecord Module
currentRecord.get.promise()
Method Description: Retrieves a promise for a currentRecord object that represents the record active on the current page. The parameters and errors thrown for this method are the same as those for currentRecord.get(). For more information on promises, see Promise Object.
Returns: Promise Object
Supported Script Types: Client scripts For more information, see SuiteScript 2.0 Client Script Type.
Governance: None
Module: N/currentRecord Module
Since: 2016.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=currentRecord.get.promise()

Example:

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

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4637734729.html