Macro(options)
Method Description |
Performs a macro operation and returns its result in a plain JavaScript object.
Note:
Substitute Macro with the name of the macro you are executing. For information about record macros, see Overview of Record Action and Macro APIs. |
Returns |
{notifications: [], response: {}} |
Supported Script Types |
Client and server 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 script example, see N/record Module Script Samples.
// Add additional code
...
var calculateTax = recordObj.getMacro({id: 'calculateTax'});
calculateTax();
...
// Add additional code