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
A
suitescript api
1objAction.executeBulk({2 params: /* array, required */,3 condition: /* string, optional */4});
| Parameter | Type | Required | Description |
|---|---|---|---|
| options.params | array | required | The 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.condition | string | optional | The 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
mynt syntax
No Mynt syntax yet.
Nothing in the language compiles to Action.executeBulk(options) today. How should it read?
C
community proposals
Competing syntax for executeBulk, from GitHub Discussions. Select two or more to compare them side by side.
Loading proposals from GitHub…
D
suggest an alternative
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,saveandRef[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?