Sync Google Sheets contacts to Salesforce by industry

Recipe ToolsMarketingDocument/FileSales EnablementCRM

What it does

When a scheduled trigger runs every 5 minutes, this automation fetches contacts from a Google Sheets spreadsheet and enriches each one. It matches postal codes to regions, upserts contacts into Salesforce grouped by industry, and updates the sheet with migration status.

Who it's for

Sales operations teams who need to keep Salesforce contacts in sync with a Google Sheets source without manual uploads.

How teams use this

Sync education sector contacts daily

Filter the spreadsheet to include only contacts in the Education industry and upsert them to Salesforce every 5 minutes. The lookup table enriches each record with postal code data before sync.

Add healthcare contacts to a separate Salesforce org

Retarget this automation to pull contacts from a Healthcare sheet and upsert them to a different Salesforce instance. The postal code lookup and error logging remain unchanged.

Include company size filtering on records

Add a condition to check the company size field from the spreadsheet and only upsert contacts that meet a minimum threshold. This ensures Salesforce receives only qualified leads.

Route contacts by region after postal code match

Set the Salesforce owner field based on the region returned from the lookup table so contacts land with the right sales team. The industry grouping and sync frequency stay the same.

How it works

  1. Run on a 5-minute schedule. This automation starts every 5 minutes to check for new or updated contacts in the source spreadsheet.
  2. Fetch rows from Google Sheets. Retrieve all spreadsheet rows from the designated sheet so each contact can be processed and enriched in the next steps.
  3. Match postal codes to regions. Search the US Postal Codes lookup table for each contact's postal code to enrich location data before upserting to Salesforce.
  4. Upsert contacts by industry. Create or update contacts in Salesforce, organized by the industry field from the spreadsheet so records stay current and grouped logically.
  5. Mark rows as migrated. Update the spreadsheet to record which contacts were successfully synced to Salesforce and log any errors to the job report.