Sync Salesforce leads to Snowflake by email domain

CRMMarketingDatabaseRecipe Tools

What it does

When a lead is created or updated in Salesforce, this automation replicates it to Snowflake. The lead row is inserted into the vignesh lead data table based on email domain validation.

Who it's for

Data and analytics teams who need Salesforce leads synced to Snowflake for reporting and analysis.

How teams use this

Replicate leads for data warehouse

Sync new Salesforce leads to Snowflake each time they are created or updated so the data warehouse stays current with the source system.

Validate leads by email domain

Check each lead email against a lookup table during the sync so only valid domains are inserted into the Snowflake table.

Add custom fields to the sync

Extend the automation to include additional Salesforce lead fields in the Snowflake insert so the table captures more attributes for analysis.

Route leads by geography

Use the lookup table result to filter leads and insert them into separate Snowflake tables by region so sales teams can access their own data.

How it works

  1. Monitor new or updated leads. Detect when a lead record is created or updated in Salesforce so the sync can begin.
  2. Insert lead into Snowflake table. Add the lead row to the vignesh lead data table in Snowflake with all required fields from the Salesforce record.
  3. Check email domain in lookup. Query the Nokia Geo Check lookup table to validate or enrich the lead email domain before the row is finalized in Snowflake.
  4. Log errors to job report. If any step fails, log the error message to the job report so the team can review and retry if needed.