Import Salesforce contacts from on-prem CSV in bulk
Document ManagementCRMMarketingSalesUtilities
What it does
When a new batch of CSV lines arrives in an on-prem file, this automation searches Salesforce for matching contacts. It bulk upserts them, and if a timeout error occurs, someone gets an email alert so the batch can be retried.
Who it's for
Sales operations teams who import contact lists into Salesforce and need to handle errors without manual intervention.
How teams use this
Import a contact list without manual checks
Upload a CSV file to the on-prem folder and let the automation search, create, and update Salesforce contacts in bulk. The team does not have to open Salesforce or check for duplicates.
Route timeout errors to a queue
Instead of sending an email, route the timeout alert to a Slack channel or ticketing system so the ops team can triage and retry batches in one place.
Add email validation before upsert
Include a step that filters out CSV lines with invalid email addresses before the bulk upsert runs. Only clean records are sent to Salesforce.
Log all upserted contacts to warehouse
Add a step that records which contacts were created or updated in each batch so the team can audit the import history and track data lineage.
How it works
- Monitor the on-prem CSV file. Watch for a new batch of CSV lines in the on-prem file. The automation processes the file in batches of 2000 lines.
- Search for matching contacts. For each batch, search Salesforce for contacts that match the CSV data so duplicates are not created in the system.
- Bulk upsert contacts in Salesforce. Create or update the contacts in bulk. If an error occurs, the automation checks whether it is a timeout error that needs manual retry.
- Send alert email on timeout. When a timeout error is detected, send an email notification so someone knows the batch needs to be retried manually.