Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.getMacro(options)

{Record}.getMacro({id: {string*}})

N/record Module
Record.getMacro()
Method Description: Provides a macro to be executed. For information about record macros, see Overview of Record Action and Macro APIs.
Returns: Function to be executed for the macro.
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.getMacro(options)

Example:

// Code Example 1
// Add additional code
//...
var macro = recordObj.getMacro({id: 'calculateTax'});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1509992196.html