View source: R/bulk-operation.R
sf_create_job_bulk | R Documentation |
This function initializes a Job in the Salesforce Bulk API
sf_create_job_bulk(
operation = c("insert", "delete", "upsert", "update", "hardDelete", "query",
"queryall"),
object_name,
soql = NULL,
external_id_fieldname = NULL,
api_type = c("Bulk 1.0", "Bulk 2.0"),
content_type = c("CSV", "ZIP_CSV", "ZIP_XML", "ZIP_JSON"),
concurrency_mode = c("Parallel", "Serial"),
column_delimiter = c("COMMA", "TAB", "PIPE", "SEMICOLON", "CARET", "BACKQUOTE"),
control = list(...),
...,
line_ending = deprecated(),
verbose = FALSE
)
operation |
|
object_name |
|
soql |
|
external_id_fieldname |
|
api_type |
|
content_type |
|
concurrency_mode |
|
column_delimiter |
|
control |
|
... |
arguments passed to |
line_ending |
|
verbose |
|
A tbl_df
parameters defining the created job, including id
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch
## Not run:
# insert into Account
job_info <- sf_create_job_bulk(operation='insert', object_name='Account')
# delete from Account
job_info <- sf_create_job_bulk(operation='delete', object_name='Account')
# update into Account
job_info <- sf_create_job_bulk(operation='update', object_name='Account')
# upsert into Account
job_info <- sf_create_job_bulk(operation='upsert',
externalIdFieldName='My_External_Id__c',
object_name='Account')
# insert attachments
job_info <- sf_create_job_bulk(operation='insert', object_name='Attachment')
# query leads
job_info <- sf_create_job_bulk(operation='query', object_name='Lead')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.