Sync Salesforce leads to Google Sheets conditionally

CRMMarketingRecipe ToolsDocument/FileSales Enablement

What it does

When a lead is created or updated in Salesforce, this automation looks up the lead's rating and searches Google Sheets. If no matching row exists, it adds one; if one exists, it updates it.

Who it's for

Sales operations teams who maintain a Google Sheets record of Salesforce leads by rating.

How teams use this

Keep a lead pipeline sheet current

New Salesforce leads sync to Google Sheets automatically so the team sees pipeline changes without manual entry. The sheet becomes a live view of rated leads.

Route leads by rating to teams

Separate sheets by rating so each team sees only their leads. Add a condition to filter high-rated leads to one sheet and others to another.

Audit lead changes over time

Keep a historical record in Google Sheets so the team can see when leads moved between ratings or were updated. Include an archive step for updated rows instead of deleting them.

How it works

  1. Detect a new or updated lead. A lead is created or updated in Salesforce, which starts this automation to check if it belongs in Google Sheets.
  2. Look up the lead rating. Search the Rating lookup table to confirm the lead's rating category so the right Google Sheets row can be found or created.
  3. Search for a matching row. Search Google Sheets for a row with the same lead. If no row is found, the next step adds one; if found, it updates it.
  4. Add or update the row. When no matching row exists, add a new row to Google Sheets with the lead data. When a row exists, update it with the latest information from Salesforce.