Get Parallel Results for a Query Job
Returns up to five URIs in one response to use to get results for a query job. The job must have the state jobComplete.
URI:
/services/data/vXX.X/jobs/query/queryJobId/resultPages
To get query results, use the same API version that you used to create the query. Otherwise, the call returns a 409 error.
Available since release:
This resource is available in API version 58.0 and later.
Formats: JSON
HTTP Methods: GET
Authentication: Authorization: Bearer token
Request Parameters
| Parameter | Description | Required or Optional |
|---|---|---|
queryJobId | The ID of the query job. The ID is retrieved when you create the query job. | Required |
The JSON response body contains multiple request URIs that you use to request data in parallel.
| Element | Description |
|---|---|
resultPages | Contains the resultUrl URIs. |
resultUrl | The request URI with the locator for getting data. |
nextRecordUrl | The URI used to get a response body with the next resultPages element. |
done | A Boolean value that indicates whether more resultUrl URIs are available. |
This example retrieves the results for a job with the ID 750R0000000zxr8IAA. We start by sending an initial request to retrieve the first set of result links.
Example Request
Example Response Body
The value of nextRecordsUrl is the URI for getting the next set of resultUrl URIs. The value of done is true if there are no more resultUrl URIs. The value of each resultUrl is a URI that you send as a request to get a set of results.
See Also