Sync Salesforce contacts to Box on schedule
Recipe ToolsCRMMarketingData ParserDocument/File
What it does
When a specified interval triggers, this automation searches a lookup table for contacts to sync. It queries Salesforce for those contacts, uploads a CSV file to Box, and updates the lookup table so the next run knows which records were processed.
Who it's for
Sales operations teams who need to keep a Box folder in sync with Salesforce contacts on a regular schedule.
How teams use this
Keep Box in sync with Salesforce daily
Run this automation each day so a Box folder always has the latest contact data from Salesforce. The lookup table ensures no contact is synced twice in the same run.
Sync only contacts with a specific status
Modify the Salesforce query to filter contacts by status, such as Active or Prospect only. The rest of the flow stays the same and only the WHERE clause changes.
Add email addresses to the CSV output
Include email as an extra column in the CSV so the Box file has contact names and email addresses together. Set the CSV composer to pull the email field from Salesforce.
Notify a team when the sync completes
Add a Slack step after the Box upload so someone in a channel knows the sync finished and how many contacts were processed. Only the notification step is new.
How it works
- Run on a specified interval. This automation runs at the interval someone configures, such as daily or weekly.
- Search entries in the lookup table. Search the Trigger Table lookup table for contacts marked to sync. The table tracks which records were processed in prior runs.
- Search Salesforce for those contacts. Query Salesforce using a WHERE clause to find contacts that match the lookup table entries and have a Contact ID present.
- Compose a CSV file. Build a CSV from the Salesforce contact results so the data is ready to upload to Box in the next step.
- Upload the file to Box. Upload the CSV file to Box using the file contents. After the upload, the lookup table is updated to mark those contacts as synced.