Newer Version Available
Getting a Batch Request
Get a batch request by sending a GET request to the following URI. This is available in API version 19.0 and later.
Alternatively, you can get a batch request in Salesforce. To track the status of bulk data load jobs and their associated batches, from Setup, enter Bulk Data Load Jobs in the Quick Find box, then select Bulk Data Load Jobs. Click the Job ID to view the job detail page. The job detail page includes a related list of all the batches for the job. The related list provides View Request and View Response links for each batch. If the batch is a CSV file, the links return the request or response in CSV format. If the batch is an XML file, the links return the request or response in XML format.
- URI
- https://instance_name—api.salesforce.com/services/async/APIversion/job/jobid/batch/batchId/request
- Example request body
- No request body is allowed.
- Example response body
-
1<?xml version="1.0" encoding="UTF-8"?> 2<sObjects xmlns="http://www.force.com/2009/06/asyncapi/dataload"> 3 <sObject> 4 <description>Created from Bulk API on Tue Apr 14 11:15:59 PDT 2009</description> 5 <name>[Bulk API] Account 0 (batch 0)</name> 6 </sObject> 7 <sObject> 8 <description>Created from Bulk API on Tue Apr 14 11:15:59 PDT 2009</description> 9 <name>[Bulk API] Account 1 (batch 0)</name> 10 </sObject> 11</sObjects>