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 more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Sibling Object Members |
|
Since |
2018.2 |
Errors
Error Code |
Thrown If |
---|---|
|
The specified record type is invalid. |
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 macroList = recordObj.getMacros();
...
// Add additional code