rforcecom.bulkAction {salesforcer} | R Documentation |
The salesforcer
backwards compatible version of the RForcecom function
rforcecom.bulkAction
Description
This function is a convenience wrapper for submitting bulk API jobs
Usage
rforcecom.bulkAction(
session,
operation = c("insert", "delete", "upsert", "update", "hardDelete"),
data,
object,
external_id_fieldname = NULL,
multiBatch = TRUE,
batchSize = 10000,
interval_seconds = 5,
max_attempts = 100,
verbose = FALSE
)
Arguments
session |
|
operation |
a character string defining the type of operation being performed |
data |
a matrix or data.frame that can be coerced into a CSV file for submitting as batch request |
object |
a character string defining the target salesforce object that the operation will be performed on |
external_id_fieldname |
|
multiBatch |
a boolean value defining whether or not submit data in batches to the API |
batchSize |
an integer value defining the number of records to submit if multiBatch is true. The max value is 10,000 in accordance with Salesforce limits. |
interval_seconds |
an integer defining the seconds between attempts to check for job completion |
max_attempts |
an integer defining then max number attempts to check for job completion before stopping |
verbose |
|
Value
A tbl_df
of the results of the bulk job
References
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch
Examples
## Not run:
# update Account object
updates <- rforcecom.bulkAction(session,
operation = 'update',
data = my_data,
object = 'Account')
## End(Not run)