Modules

filter

 

Objects/Functions

module (N/action)

SuiteScript 2.0

Action.execute(options)

{Action}.execute({Object: {Object},})

N/action Module
Action.execute()
Method Description: Executes the action and returns the action result in a object. The response property of the result object holds the actual response returned by the action implementation. The notifications property of the result object is an array of notification objects. It contains the details of errors and warnings that occurred during action execution. If the action executes successfully, the notifications property is usually empty. If the Action object is qualified (it is a result of an action.get() or action.find() call that provides the recordId), then it is not required to provide a recordId and the options.params.recordId parameter is optional. If options.params.recordId is provided during execution, it takes precedence over the recordId stored in the Action object.
Returns: Object
Supported Script Types: Client and server scripts For additional information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/action Module
Parent Object: action.Action
Sibling Object Members: Action Object Members
Since: 2018.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Action.execute(options)

Example:

// Code Example 1
// Add additional code
//...
var result = action.execute({recordId: 1});
//...
// Add additional code

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