Sync Salesforce contacts to Sftp as CSV

CRMMarketingSalesUtilities

What it does

When a scheduled Salesforce contact search runs, this automation creates or appends CSV lines and uploads the file to Sftp. Someone gets a fresh or updated contact list on the Sftp server each time the schedule triggers.

Who it's for

Data and analytics teams who need Salesforce contacts in Sftp without manual exports.

How teams use this

Export contacts on a daily schedule

Run the Salesforce contact search every morning and upload a fresh CSV to Sftp so downstream systems always have the latest list. No manual work is needed.

Feed a data warehouse pipeline

Let a data warehouse tool pull the CSV from Sftp on its own schedule so Salesforce contacts sync without API calls or direct integrations.

Filter contacts by a field value

Add a condition to the query WHERE clause so only contacts that match a status or region are exported to Sftp. The rest of the flow stays the same.

How it works

  1. Run scheduled contact search. A scheduled Salesforce contact search using a query with a WHERE clause runs on your set schedule and returns a batch of contacts.
  2. Compose CSV from contacts. Format the contact data as CSV lines with headers on the first batch, or without headers on later batches so the file grows.
  3. Upload or append to Sftp file. Create a new CSV file on the Sftp server for the first batch, or append rows to the existing file for all later batches.