Sync Salesforce open leads daily to Redshift
Recipe ToolsMarketingCRMDatabase
What it does
When a scheduled time arrives, this automation searches Salesforce for open leads. It inserts them into Redshift so someone can analyze lead data without manual exports.
Who it's for
Sales operations teams who need current lead data in Redshift for reporting and analysis.
How teams use this
Analyze lead pipeline in Redshift
Sync open leads daily so the sales team can run reports and dashboards in Redshift without exporting from Salesforce. The data updates automatically each morning.
Filter leads by region or source
Modify the SOQL WHERE clause to sync only leads from a specific region or campaign source using Salesforce filters. This keeps Redshift focused on the subset of data the team needs.
Sync to a different Redshift table
Point the batch insert to a separate Redshift table for lead scoring or enrichment workflows. The sync logic stays the same and only the destination table changes.
How it works
- Run on a daily schedule. This automation starts at a specified time each day to keep lead data fresh in Redshift.
- Search for open leads in Salesforce. Query Salesforce for open leads using a SOQL WHERE clause to filter only the records that need to sync to Redshift.
- Insert leads into Redshift. Add the batch of leads to the public.sfdc_leads table in Amazon Redshift so the data is ready for analysis and reporting.