Sync invalid Salesforce contacts to Snowflake

CRMMarketingRecipe ToolsDeveloper Tool

What it does

When new contacts arrive in Salesforce in batches, this automation runs a validation script to mark bad contact details. It syncs the results to Snowflake so the team has a current record of which contacts need attention.

Who it's for

Data and analytics teams who need to identify and track invalid contact records across systems.

How teams use this

Flag incomplete contact records

Mark contacts missing email or phone so the sales team knows which records to complete before syncing to downstream systems. The validation runs automatically on every batch.

Sync clean data to Snowflake

Send only validated contacts to Snowflake for reporting and analytics. Invalid records are flagged in Salesforce and excluded from the warehouse load.

Route invalid contacts for review

Notify the data quality team when invalid contact details are found so they can investigate and correct the source records in Salesforce.

How it works

  1. Monitor Salesforce for new contacts. Detect batches of new or changed contacts in Salesforce so the validation runs only on recent data.
  2. Validate contact details with JavaScript. Execute a JavaScript validation script in Js Eval that checks each contact for missing or malformed email, phone, or address fields and marks invalid records.
  3. Update Salesforce with validation results. Write the validation status back to each Salesforce contact record so the team sees which ones failed the check.