Sync Salesforce leads to Google Sheets with validation
CRMMarketingDocument/FileSales EnablementRecipe Tools
What it does
When a lead is created or updated in Salesforce, this automation searches Google Sheets for matching rows. It adds a new row, updates an existing one, or stops with an error based on what it finds, with automatic retries for rate limits.
Who it's for
Sales operations teams who need to keep Google Sheets in sync with Salesforce leads while validating data against a lookup table.
How teams use this
Keep lead data synchronized daily
New Salesforce leads automatically sync to Google Sheets with validation, so the sales team has an up-to-date reference sheet without manual entry.
Prevent duplicate rows on updates
When a lead is updated in Salesforce, the automation finds and updates the matching row instead of creating a duplicate, keeping the sheet clean.
Add lead source validation
Extend the lookup table to include lead source as a validation field, so only leads from approved sources are added to the sheet.
Route high-value leads to a separate sheet
Retarget this automation to check the lead rating and send high-value leads to a different Google Sheet for priority handling by the executive team.
How it works
- Detect a new or updated lead. A lead is created or updated in Salesforce, starting this automation to sync the data to Google Sheets.
- Search for matching rows. Search the Google Sheets spreadsheet for rows that match the lead so the automation knows whether to add or update an existing entry.
- Validate the lead rating. Look up the lead in the Salesforce Lead Rating lookup table to confirm the rating exists and is valid before proceeding with the sync.
- Add or update the spreadsheet row. Add a new row if no match was found, update the existing row if one match was found, or stop with an error if multiple matches exist in the sheet.
- Retry on rate limit errors. If a rate limit error occurs during the sync, retry all steps up to three times before stopping the job and notifying the team.