Salesforce · Arazzo Workflow
Salesforce Bulk Upsert Records
Version 1.0.0
Run the full Bulk API 2.0 upsert lifecycle — create an upsert ingest job keyed on an external Id field, upload CSV, close, poll, and read successful results.
View Spec
View on GitHub
AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSalesArazzoWorkflows
Provider
Workflows
bulk-upsert-records
Bulk upsert records into a Salesforce object by external Id via the Bulk API 2.0 ingest lifecycle.
Creates an upsert ingest job keyed on an external Id field, uploads CSV data, closes the job, polls until JobComplete, and returns the successful results CSV.
1
createJob
createIngestJob
Create a new Bulk API 2.0 ingest job configured for the upsert operation against the target object, keyed on the supplied external Id field. The job starts in the Open state.
2
uploadData
uploadJobData
Upload the CSV payload to the open ingest job. The header row must include the external Id field used for matching.
3
closeJob
updateIngestJob
Close the ingest job by setting its state to UploadComplete, which tells Salesforce to begin processing the upserts.
4
pollJob
getIngestJobInfo
Poll the ingest job state. When the job reaches JobComplete, continue to retrieve results; while still InProgress or UploadComplete, loop back to poll again; if the job Failed or Aborted, stop the workflow.
5
getResults
getSuccessfulResults
Retrieve the CSV of successfully processed records once the job has reached JobComplete. Each row includes the added sf__Id and sf__Created columns.