Macro.execute.promise(options)
Method Description |
Performs a macro operation asynchronously. For information about record macros, see Overview of Record Action and Macro APIs.
Note:
The parameters and errors thrown for this method are the same as those for Macro.execute(options). 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 |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2018.2 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
Object |
optional |
The macro arguments. |
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
...
myMacro.execute.promise().then(function(result){ /* do something with macro result */ });
...
// Add additional code