Learn R Programming

RForcecom (version 1.1)

rforcecom.getBulkQueryResult: Retrieving the Results of a Bulk Query Batch in a Bulk API Job

Description

This function returns the resultset of a Bulk Query batch which has already been submitted to Bulk API Job and has Completed state

Usage

rforcecom.getBulkQueryResult(session, jobId, batchId, resultId)

Arguments

session
a named character vector defining parameters of the api connection as returned by rforcecom.login
jobId
a character string defining the salesforce id assigned to a submitted job as returned by rforcecom.createBulkJob
batchId
a character string defining the salesforce id assigned to a submitted batch as returned by rforcecom.createBulkBatch
resultId
a character string returned from rforcecom.getBatchDetails when a query has completed and specifies how to get the recordset

Value

A data.frame, formatted by salesforce, containing query results

References

https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/

Examples

Run this code
## Not run: 
# result <- rforcecom.getBatchDetails(session, 
#                                     jobId=batch_query_info$jobId, 
#                                     batchId=batch_query_info$id)
# recordset <- rforcecom.getBulkQueryResult(session, 
#                                           jobId=batch_query_info$jobId, 
#                                           batchId=batch_query_info$id, 
#                                           resultId=result$result)
# ## End(Not run)

Run the code above in your browser using DataLab