Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

Macro.execute(options)

{Macro}.execute({params: {Object}})

N/record Module
Macro.execute()
Method Description: Performs a 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: {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.execute(options)

Example:

// Code Example 1
// Add additional code
//...
timesheet.executeMacro({id:'copyFromWeek', params: {weekOf : '7/10/2017', copyExact : true}});
//...
// Add additional code

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