Sync contacts from Amazon S3 to Snowflake and Salesforce

Developer ToolMarketingDatabaseAPI IntegrationCRM

What it does

When a new CSV file lands in Amazon S3, this automation bulk loads the rows into Snowflake. Each contact is enriched via an HTTP request, and matching records are upserted into Salesforce before the file is deleted.

Who it's for

Sales operations teams who need to ingest contact lists from Amazon S3 into their CRM without manual steps.

How teams use this

Ingest a partner contact list weekly

Drop a CSV into Amazon S3 each week and let this automation load, enrich, and sync all contacts to Salesforce without manual intervention or data entry.

Route enriched contacts to teams

After contacts are enriched and synced to Salesforce, add a step to assign each contact to a sales rep based on territory or industry so outreach starts immediately.

Validate data quality before sync

Add a condition to check that enriched contacts meet minimum data standards before they are upserted to Salesforce, so only high-quality records enter the CRM.

Archive contacts to a data lake

Send all enriched contacts to a separate archive table in Snowflake for compliance and historical analysis, keeping the main table lean.

How it works

  1. Detect a new CSV file. Monitor Amazon S3 for a new CSV file containing contact data ready to import into Snowflake and Salesforce.
  2. Bulk load rows to staging. Load all rows from the CSV into the INITIAL_CONTACTS table in Snowflake so the data is ready for enrichment and processing.
  3. Enrich each contact via request. For each row, send an HTTP request to enrich the contact data with additional details. If the response contains exactly one match, proceed to insert the enriched record.
  4. Store enriched contacts. Insert the enriched contact into the ENRICHCONTACTS table in Snowflake for audit, reference, and compliance tracking.
  5. Sync to Salesforce and clean up. Upsert each enriched contact into Salesforce so the CRM stays current. Delete the file from Amazon S3 when all contacts are synced.