Modules

filter

 

Objects/Functions

module (N/action)

SuiteScript 2.0

action.execute(options)

{action}.execute({recordType: {string*},id: {string*},params: {})

N/action Module
action.execute()
Method Description: Executes the record action and returns the action results in a plain JavaScript object. If the action fails, it is listed in the results object’s notifications property. If the action executes successfully, the notifications property is usually empty.
Returns: Object
Supported Script Types: Client and server scripts For additional information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/action Module
Sibling Object Members: N/action Module 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 = actionMod.execute({id: 'note', recordType: 'timebill', params: {recordId:1}
});
//...
// Add additional code

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