sf_query_result_bulk_v2 | R Documentation |
This function returns the row-level recordset of a Bulk 2.0 query which has already been submitted as a Bulk 2.0 API job and has a JobComplete state.
sf_query_result_bulk_v2( job_id, guess_types = TRUE, bind_using_character_cols = deprecated(), batch_size = 50000, locator = NULL, api_type = c("Bulk 2.0"), verbose = FALSE )
job_id |
|
guess_types |
|
bind_using_character_cols |
|
batch_size |
|
locator |
|
api_type |
|
verbose |
|
tbl_df
, formatted by Salesforce, containing query results
## Not run: my_query <- "SELECT Id, Name FROM Account LIMIT 1000" job_info <- sf_create_job_bulk(operation = 'query', object = 'Account', api_type="Bulk 2.0") query_info <- sf_submit_query_bulk(job_id = job_info$id, soql = my_query, api_type="Bulk 2.0") result <- sf_batch_details_bulk(job_id = query_info$jobId, batch_id = query_info$id) recordset <- sf_query_result_bulk(job_id = query_info$jobId, batch_id = query_info$id, result_id = result$result) sf_close_job_bulk(job_info$id, api_type="Bulk 2.0") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.