Sync H2 segmentation contacts from Dropbox to Salesforce

Document/FileMarketingCRMRecipe Tools

What it does

When a new or updated CSV file lands in Dropbox, this automation checks for email and last name, then upserts each contact into Salesforce. It tracks successful upserts and logs any errors so the team knows the import status.

Who it's for

Sales operations teams who need to sync H2 segmentation data from Dropbox into Salesforce without manual entry.

How teams use this

Import H2 segmentation contacts weekly

Drop a fresh CSV into Dropbox each week and let this automation upsert all contacts into Salesforce. The team gets an error log if anything fails, and nothing else changes.

Route contacts to regional sales teams

Use the same CSV import but add a field mapping step to assign each contact to a region or sales rep based on data in the file. The upsert and error logging stay the same.

Add phone and company validation

Extend the file check to require phone number and company name in addition to email and last name. Only rows that pass all four conditions are upserted into Salesforce.

Notify ops when import completes

Include a Slack notification step after the batch finishes with the success count and any error details. The import logic and Salesforce updates do not change.

How it works

  1. Monitor Dropbox for new CSV file. When a new or updated CSV file appears in Dropbox, the automation reads the file and extracts rows that have both an email address and a last name present.
  2. Search for existing contacts. Query Salesforce using a SOQL WHERE clause to find contacts that match the email addresses in the file so duplicates are not created.
  3. Upsert each contact record. For each row in the file, upsert the contact into Salesforce with email and last name. Count successful upserts and log any errors that occur during the process.
  4. Update the data load entry. Create or update a data load entry in Salesforce to track the import batch, including the success count and any error details for audit purposes.