Sync Salesforce contacts to Google Sheets

CRMMarketingDocument/FileRecipe Tools

What it does

When a scheduled SOQL query runs in Salesforce, this automation finds contacts that match a WHERE clause and adds each email to Google Sheets. The spreadsheet stays current with every sync cycle.

Who it's for

Sales operations teams who need Salesforce contact emails in a spreadsheet without manual exports.

Apps used

How teams use this

Export qualified leads to a sheet

Run the SOQL query nightly to find contacts in a specific campaign, and sync their emails to Google Sheets. Sales teams can then use the sheet for outreach without leaving the spreadsheet.

Build a mailing list by region

Change the SOQL WHERE clause to filter contacts by region or territory, and add their emails to a regional sheet. Each region gets its own row and email list.

Include phone numbers and titles

Extend the sheet columns to add phone and job title from each Salesforce contact record. The query stays the same and only the row data expands.

How it works

  1. Search contacts on a schedule. Run a scheduled SOQL query in Salesforce to find contacts that match a WHERE clause. The query runs at the set time and returns a batch of contacts.
  2. Add each contact email to Google Sheets. For each contact found in the batch, add a new row in Google Sheets with the contact's email address so the spreadsheet grows with every sync.
  3. Collect emails into a list. Accumulate all contact emails from the batch into an emailList so the full set is available for downstream use or reference.