currentRecord.get.promise()
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 |
|
Synchronous Version |
|
Supported Script Types |
Client scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2016.2 |
Errors
Error Code |
Thrown If |
---|---|
|
The current record page is not scriptable or an error occurred when creating the record instance. |
Syntax
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