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

Description Usage Arguments Value References Examples

View source: R/rforcecom.getBulkQueryResult.R

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

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

RForcecom documentation built on May 1, 2019, 6:31 p.m.