Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Batch Job Actions
A Batch Management job processes a flow in manageable parts. For more information about running an active Batch Management jobs, see Schedule a Batch Job in Salesforce Help.
This object is available in API version 51.0 and later.
Special Access Rules
To know the products and user permissions needed to access this action, See Supported Editions and Permissions for Batch Management.
Supported REST HTTP Methods
- URI
- /services/data/vXX.X/actions/custom/batchJobAction
- Formats
- JSON
- HTTP Methods
- GET, POST
- Authentication
- Authorization: Bearer token
Inputs
The batch job action uses the batch job definition ID and input variables to execute the job and generate a batch job ID. The input values vary according to the input variables in that flow.
Outputs
| Output | Details |
|---|---|
| batchJobId |
|
Usage
A request body is always required. The input values vary according to the input variables in that flow. If your batch job doesn't require any input variables, you still must send an empty JSON body.
1{
2 "inputs": [{}]
3}JSON Sample Request
1{
2 "noOfEmployees" : 900,
3 "accountIndustry" : "Technology"
4}JSON Sample Response
1{
2 "batchJobId": "0lMxx0000A000001EAA"
3 "accepted": "true"
4}