Bulk Import Records (Bulk API 2.0)
sf_bulk_import_recordsBulk import large Salesforce datasets using Bulk API 2.0, with support for insert, upsert, update, and delete, including job polling and success/failure counts.
Instructions
Bulk imports records using the Salesforce Bulk API 2.0. Supports insert, upsert, update, and delete operations on large datasets (thousands to millions of records). Provide CSV data with a header row. For upsert, set externalIdField to the field used for matching. Polls until the job completes and returns success/failure counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | Array of record objects with field API name to value mappings | |
| operation | Yes | Bulk operation type | |
| objectApiName | Yes | SObject API name, e.g. 'Account' | |
| externalIdField | No | External ID field for upsert operations, e.g. 'External_Id__c' |