sf_batch_details_bulk {salesforcer} | R Documentation |
Returning the Details of a Batch in a Bulk API Job
Description
This function returns detailed (row-by-row) information on an existing batch which has already been submitted to Bulk API Job
Usage
sf_batch_details_bulk(
job_id,
batch_id,
api_type = c("Bulk 1.0"),
verbose = FALSE
)
Arguments
job_id |
|
batch_id |
|
api_type |
|
verbose |
|
Value
A tbl_df
, formatted by Salesforce, with information containing
the success or failure or certain rows in a submitted batch, unless the operation
was query, then it is a data.frame containing the result_id for retrieving the recordset.
Note
This is a legacy function used only with Bulk 1.0.
References
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch
Examples
## Not run:
job_info <- sf_create_job_bulk(operation = "query", object = "Account")
soql <- "SELECT Id, Name FROM Account LIMIT 10"
batch_query_info <- sf_submit_query_bulk(job_id = job_info$id, soql = soql)
batch_details <- sf_batch_details_bulk(job_id=batch_query_info$jobId,
batch_id=batch_query_info$id)
sf_close_job_bulk(job_info$id)
## End(Not run)