Modules

filter

 

Objects/Functions

module (N/action)

SuiteScript 2.0

action.get(options)

{action}.get({recordType: {string*},recordId: {string},id: {string*}})

N/action Module
action.get()
Method Description: Returns an executable record action for the specified record type. If the recordId parameter is specified, the action object is returned only if the specified action can be executed on the specified record instance.
Returns: action.Action
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.get(options)

Example:

// Code Example 1
// Add additional code
//...
var action = actionMod.get({recordType: 'timebill', id: 'approve'});
//...
// Add additional code

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