Run Bulk Operation
This function is a convenience wrapper for submitting bulk API jobs
sf_run_bulk_operation( input_data, object_name, operation = c("insert", "delete", "upsert", "update", "hardDelete"), external_id_fieldname = NULL, guess_types = TRUE, api_type = c("Bulk 1.0", "Bulk 2.0"), batch_size = NULL, interval_seconds = 3, max_attempts = 200, wait_for_results = TRUE, control = list(...), ..., verbose = FALSE ) sf_bulk_operation( input_data, object_name, operation = c("insert", "delete", "upsert", "update", "hardDelete"), external_id_fieldname = NULL, guess_types = TRUE, api_type = c("Bulk 1.0", "Bulk 2.0"), batch_size = NULL, interval_seconds = 3, max_attempts = 200, wait_for_results = TRUE, control = list(...), ..., verbose = FALSE )
input_data |
|
object_name |
|
operation |
|
external_id_fieldname |
|
guess_types |
|
api_type |
|
batch_size |
|
interval_seconds |
|
max_attempts |
|
wait_for_results |
|
control |
|
... |
other arguments passed on to |
verbose |
|
A tbl_df
of the results of the bulk job
With Bulk 2.0 the order of records in the response is not guaranteed to match the ordering of records in the original job data.
## Not run: n <- 20 new_contacts <- tibble(FirstName = rep("Test", n), LastName = paste0("Contact", 1:n)) # insert new records into the Contact object inserts <- sf_bulk_operation(input_data = new_contacts, object_name = "Contact", operation = "insert") ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.