Modules
Objects/Functions
SuiteScript 2.0
{Record}.executeMacro({id: {string*},params: {Object}})
N/record Module
Record.executeMacro()
Method Description:
Performs macro operation and returns its result in a plain JavaScript object.
For information about record macros, see Overview of Record Action and Macro APIs.
Returns:
An object with the macro results or null.
Supported Script Types:
Client and server scripts
For additional information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/record Module
Sibling Object Members:
Record Object Members
Since:
2018.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Record.executeMacro(options)
Example:
// Code Example 1
// Add additional code
//...
if ('calculateTax' in macros) {
macros.calculateTax();
}
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1509992174.html