Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Record.getMacros()

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Record.getMacros() for more information.

N/record Module
Record.getMacros()
Method Description: Provides a plain JavaScript object of available macro objects defined for a record type, indexed by the Macro ID. The object returns one or more record.Macro objects. If there are no macros available for the specified record type, an empty object is returned. For information about record macros, see Overview of Record Action and Macro APIs.
Returns: Object
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.getMacros()

Example:

// Code Example 1
// Add additional code
//...
var macroList = recordObj.getMacros();
//...
// Add additional code

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