Modules

filter

 

Objects/Functions

module (N/action)

SuiteScript 2.0

action.executeBulk(options)

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

N/action Module
action.executeBulk()
Method Description: Executes an asynchronous bulk record action and returns its task ID for status queries with action.getBulkStatus(options). The options.params parameter is mutually exclusive to options.condition and options.paramCallback.
Returns: string
Supported Script Types: Client and server-side scripts For additional information, see SuiteScript 2.0 Script Types.
Governance: 50 units
Module: N/action Module
Sibling Object Members: N/action Module Members
Since: 2019.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=action.executeBulk(options)

Example:

// Code Example 1
{recordId: 1, someParam: 'example1', otherParam: 'example2'}

// Code Example 2
// Add additional code
//...
var handle = action.executeBulk({
recordType: 'timebill',
id: 'approve',
params: [{ recordId: 1, note: 'this is a note for 1' },
{ recordId: 5, note: 'this is a note for 5' },
{ recordId: 23, note: 'this is a note for 23' }]
})
});...
// Add additional code

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