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.
Get Information for All Batches in a Job
Get information about all batches in a job by sending a GET request to this
URI.
URI: /services/async/APIversion/job/jobid/batch
Method: GET
Example request body
No request body is allowed.
Example XML response body
1<?xml version="1.0" encoding="UTF-8"?>
2<batchInfoList
3 xmlns="http://www.force.com/2009/06/asyncapi/dataload">
4 <batchInfo>
5 <id>751D0000000004rIAA</id>
6 <jobId>750D0000000002lIAA</jobId>
7 <state>InProgress</state>
8 <createdDate>2009-04-14T18:15:59.000Z</createdDate>
9 <systemModstamp>2009-04-14T18:16:09.000Z</systemModstamp>
10 <numberRecordsProcessed>0</numberRecordsProcessed>
11 <numberRecordsFailed>0</numberRecordsFailed>
12 <totalProcessingTime>0</totalProcessingTime>
13 <apiActiveProcessingTime>0</apiActiveProcessingTime>
14 <apexProcessingTime>0</apexProcessingTime>
15 </batchInfo>
16 <batchInfo>
17 <id>751D0000000004sIAA</id>
18 <jobId>750D0000000002lIAA</jobId>
19 <state>InProgress</state>
20 <createdDate>2009-04-14T18:16:00.000Z</createdDate>
21 <systemModstamp>2009-04-14T18:16:09.000Z</systemModstamp>
22 <numberRecordsProcessed>800</numberRecordsProcessed>
23 <numberRecordsFailed>0</numberRecordsFailed>
24 <totalProcessingTime>5870</totalProcessingTime>
25 <apiActiveProcessingTime>0</apiActiveProcessingTime>
26 <apexProcessingTime>2166</apexProcessingTime>
27 </batchInfo>
28</batchInfoList>Example JSON response body
1{
2 "batchInfo" : [
3 {
4 "apexProcessingTime" : 0,
5 "apiActiveProcessingTime" : 0,
6 "createdDate" : "2015-12-15T21:56:43.000+0000",
7 "id" : "751D00000004YGZIA2",
8 "jobId" : "750D00000004SkVIAU",
9 "numberRecordsFailed" : 0,
10 "numberRecordsProcessed" : 0,
11 "state" : "Queued",
12 "systemModstamp" : "2015-12-15T21:57:19.000+0000",
13 "totalProcessingTime" : 0
14 },
15 {
16 "apexProcessingTime" : 0,
17 "apiActiveProcessingTime" : 2166,
18 "createdDate" : "2015-12-15T22:52:49.000+0000",
19 "id" : "751D00000004YGeIAM",
20 "jobId" : "750D00000004SkVIAU",
21 "numberRecordsFailed" : 0,
22 "numberRecordsProcessed" : 800,
23 "state" : "Completed",
24 "systemModstamp" : "2015-12-15T22:54:54.000+0000",
25 "totalProcessingTime" : 5870
26 }
27 ]
28}