Modules
Objects/Functions
SuiteScript 2.0
{Action}.executeBulk({params: {array},condition: {string},paramCallback: {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).
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
Parent Object:
action.Action
Sibling Object Members:
Action Object 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 actionObj = action.get({
recordType: 'timebill',
id: 'approve'
});
var handle = actionObj.executeBulk({
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_1540816431.html