Modules
Objects/Functions
SuiteScript 2.0
Macro({params: {Object}})
N/record Module
Macro()
Method Description:
Performs a macro operation and returns its result in a plain JavaScript object.
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 additional information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/record Module
Parent Object:
record.Macro
Sibling Object Members:
Macro Object Members
Since:
2018.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Macro(options)
Example:
// Code Example 1
// Add additional code
//...
var calculateTax = recordObj.getMacro({id: 'calculateTax'});
calculateTax();
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1509730768.html