Update Salesforce campaign members from on-prem CSV

Recipe ToolsMarketingDocument/FileData ParserCRM

What it does

When a scheduled interval arrives, this automation checks an on-prem folder for new CSV files. It downloads each file, parses it, and updates Salesforce campaign member records in bulk, then renames the file to mark it as processed.

Who it's for

Sales operations teams who sync campaign member data from on-prem systems to Salesforce on a schedule.

How teams use this

Sync campaign member status daily

Run this automation each morning to pull overnight CSV exports from on-prem and update all campaign member records in Salesforce. The team sees fresh data without manual steps.

Route files by campaign type

Add a condition to check the CSV filename or content and route different campaigns to separate Salesforce update operations. Each campaign gets the right field mapping.

Alert on sync failures with notification

Include an error notification step to send email when a CSV fails to parse or the Salesforce update does not complete. The team knows right away if something broke.

Archive processed files instead of renaming

Move completed CSV files to an archive folder on-prem so the active folder stays clean. Processed records stay available for audit.

How it works

  1. Check on a scheduled interval. This automation runs at a specified time each day, week, or month to process new CSV files from the on-prem folder.
  2. List files in the on-prem folder. Onprem Files scans the on-prem folder to find all CSV files waiting to be processed and downloaded.
  3. Download and parse the CSV. Download each file from on-prem and parse it with Csv Parser to extract campaign member data for Salesforce.
  4. Update campaign members in bulk. Send the parsed data to Salesforce to update campaign member records in a single batch operation.
  5. Rename the processed file. Rename the CSV file on-prem to mark it as processed so it is not picked up again on the next run.