Enrich Salesforce contacts with new event data hourly
Recipe ToolsMarketingWorkatoDatabaseCRMData ParserUtilities
What it does
When the clock triggers every hour, this automation queries Snowflake for contacts that had events since the last run. It enriches each contact record in Salesforce with fresh data from an external lookup so the sales team always has current information.
Who it's for
Sales operations teams who need contact records in Salesforce to stay current with recent event activity without manual updates.
How teams use this
Keep contact records current automatically
Enrich Salesforce contacts every hour with fresh event data from Snowflake and external lookups. The sales team always sees the latest information without asking for manual updates.
Sync event data across systems
Pull contacts that had recent events in Snowflake and push enriched details back to Salesforce. This keeps both systems aligned and prevents the sales team from working with outdated records.
Add custom enrichment fields to contacts
Set additional fields or filter which contacts get enriched based on a condition so only records matching certain criteria receive the new data. The enrichment flow remains the same with the extra filtering step included.
Run enrichment on demand instead of hourly
Replace the clock trigger with a manual request or event so enrichment runs only when someone initiates it. The rest of the flow stays the same and adapts to a different schedule.
How it works
- Run enrichment every hour. The automation starts on a schedule, running every hour to check for contacts with new events.
- Find contacts with recent events. Query Snowflake with custom SQL to generate a list of contact IDs that had events since the last job run.
- Retrieve current contact details. For each contact ID from Snowflake, fetch the latest details from Salesforce to avoid stale data that has not yet synced.
- Look up enrichment data. Call the PDL API lookup function to retrieve fresh contact information and enrichment details for each record.
- Update contacts with enriched data. Write the enriched information back to each Salesforce contact record so the sales team sees the most current details.