Sync Google Sheets contacts to Salesforce by Industry

Recipe ToolsMarketingDocument/FileSales EnablementCRM

What it does

When the clock triggers every 5 minutes, this automation reads contacts from Google Sheets and validates postal codes. It upserts each contact to Salesforce only when the industry equals Transportation, then updates the sheet row status.

Who it's for

Sales operations teams who need to sync filtered contacts from Google Sheets to Salesforce based on industry without manual data entry.

How teams use this

Sync Transportation contacts continuously

Run the migration every 5 minutes to keep Transportation industry contacts in sync between Google Sheets and Salesforce without manual uploads or data entry.

Expand to multiple industries

Add conditions to filter by other industries such as Retail or Manufacturing so more contact types flow into Salesforce. Only the industry filter logic changes while the rest of the automation stays the same.

Include custom field mapping

Set up additional field mappings so phone numbers, company names, and custom attributes from Google Sheets are included when contacts are upserted to Salesforce. This requires adding mapped fields to the upsert step.

Alert on migration failures

Add a notification step so someone receives an alert when contacts fail to migrate or postal code validation errors occur. The team can then investigate and fix data quality issues before the next run.

How it works

  1. Run the migration every 5 minutes. The automation starts on a 5-minute schedule to check for new or updated contacts in the Google Sheets spreadsheet.
  2. Fetch contacts from Google Sheets. Retrieve all rows from the Google Sheets spreadsheet so each contact can be processed and evaluated for migration to Salesforce.
  3. Verify postal codes in lookup table. Search the US Postal Codes lookup table for each contact to validate location data before upserting to Salesforce.
  4. Upsert Transportation contacts to Salesforce. Create or update each contact in Salesforce only when the industry field equals Transportation, then update the sheet row to mark it as migrated.
  5. Log results and update the sheet. Record migration success or failure for each contact and update the spreadsheet row status so someone can track which contacts were synced.