Sync Snowflake customers to Salesforce every 5 minutes
Recipe ToolsMarketingDatabaseCRMData ParserUtilities
What it does
When the schedule triggers every 5 minutes, this automation queries Snowflake for customer rows and searches Salesforce in bulk to find matches. It parses results and updates or creates Salesforce records, logging outcomes to a job report.
Who it's for
Sales operations teams who need customer data from Snowflake synced to Salesforce on a frequent schedule.
How teams use this
Keep Salesforce customers synced with master data
Run the sync every 5 minutes so Salesforce always reflects the latest customer data from the master data management system in Snowflake. No manual updates are needed.
Sync only new or changed records
Filter the Snowflake query to check only rows with a recent timestamp so the automation skips unchanged customers and runs faster. The rest of the flow stays the same.
Route sync errors to a Slack channel
Add a step after the job report so error messages are sent to a Slack channel for the team to see right away. That way issues are caught before they impact sales.
Sync to a different Salesforce org
Point the Salesforce search and update steps to a sandbox or production org. The Snowflake query and schedule stay the same.
How it works
- Start sync on a 5-minute schedule. The automation runs every 5 minutes to keep Salesforce customer data current with Snowflake.
- Query customer rows from Snowflake. Run a custom SQL query to select customer rows from Snowflake, then process them in batches.
- Search Salesforce for matching records. Search Salesforce in bulk using a SOQL query to find existing customer records that match the Snowflake data.
- Parse results and update records. Parse the CSV results and use a custom Salesforce action to update existing records or create new ones based on matches found.
- Log sync outcomes to job report. Log success and error messages to a job report so someone can track which customers were synced and any issues that occurred.