Sync Snowflake product categories to Salesforce daily
Recipe ToolsMarketingWorkatoDatabaseCRMData ParserUtilities
What it does
When the clock triggers at noon Pacific time each day, this automation queries Snowflake for opportunities missing product categories. It updates those records in Salesforce in batches and logs failures back to Snowflake.
Who it's for
Sales operations teams who need product category data in Salesforce to stay current with Snowflake without manual updates.
How teams use this
Keep product data consistent across systems
Run the sync every day so Salesforce opportunities always reflect the product categories stored in Snowflake. The team sees current data without manual work.
Catch and track update failures
When an opportunity update fails in Salesforce, log it to Snowflake so the team can identify patterns and fix bad data before the next sync runs.
Sync on demand from Slack
Replace the daily clock trigger with a Slack command so someone can run the sync whenever product categories change in Snowflake without waiting for the scheduled time.
How it works
- Run the sync every day. This automation runs every day at 12:00 PM Pacific time to keep Salesforce opportunities aligned with Snowflake data.
- Query opportunities needing updates. Run a custom SQL query in Snowflake to identify opportunities missing product category information for the batch update.
- Update product categories in batches. For each batch of opportunities from Snowflake, update the Product Categories field in Salesforce and track any failures.
- Record failures in Snowflake. Insert any failed opportunity updates into a Snowflake table so the team can review and retry them later.