Action object method · N/action

executeBulk()

Action.executeBulk(options)

Executes an asynchronous bulk record action and returns its task ID for later status inquiry.

Implementation
Not started
Design
Open for proposals suggest how it should read
Proposals
A
Signature
Action.executeBulk(options)
Module
N/action
Returns
string
Governance
50 units
Script types
Client and server scripts
Version
SuiteScript 2.x, documented for 2.1; since NetSuite 2019.1
call shapefrom Oracle's parameter table
1objAction.executeBulk({2    params:    /* array, required */,3    condition: /* string, optional */4});
Oracle reference for this method
ParameterTypeRequiredDescription
options.paramsarrayrequiredThe options.params parameter is mutually exclusive to options.condition and options.paramCallback . An array of parameter objects. Each object corresponds to one record ID of the record for which the action is to be executed. The object has the following form: {recordId: 1, someParam: 'example1', otherParam: 'example2'}
options.conditionstringoptionalThe condition used to select record IDs of records for which the action is to be executed. Only the action.ALL_QUALIFIED_INSTANCES constant is currently supported. The action.ALL_QUALIFIED_INSTANCES condition only works correctly if the author of the record action has implemented the findInstances method of the RecordActionQualifier interface. An example of such action is approve on the timebill and timesheet records.
B

No Mynt syntax yet.

Nothing in the language compiles to Action.executeBulk(options) today. How should it read?

C

Competing syntax for executeBulk, from GitHub Discussions. Select two or more to compare them side by side.

All discussions

Loading proposals from GitHub…

D

Write the Mynt you wish you could write.

A good proposal shows the syntax, the SuiteScript it should become, and argues for it: why it is clearer, how it fits the rest of the language, what it makes harder.

  • Clarity. Does it say what happens, without ceremony?
  • Consistency. Does it read like load, save and Ref[field]?
  • Expressiveness. Does it cover the cases people actually write?
  • Honesty. Does it hide a NetSuite cost, such as governance, that a reader should see?

N/action · Action.executeBulk(options)

Suggest syntax for executeBulk