Sync Google Sheets rows to Salesforce with error handling
Recipe ToolsMarketingDocument/FileSales EnablementCRM
What it does
When the clock triggers every 5 minutes, this automation fetches rows from Google Sheets and creates Salesforce contacts from each one. If a row fails to sync, the automation logs the error and marks the row so someone knows what happened.
Who it's for
Sales operations teams who need to keep Salesforce contacts in sync with a Google Sheets list and track which rows had problems.
How teams use this
Sync a contact list to Salesforce automatically
Run this automation on a schedule to turn Google Sheets rows into Salesforce contacts without manual work. The team maintains one list and Salesforce stays current.
Catch and log sync failures for review
When a row fails to create a contact in Salesforce, the automation logs the error and updates the sheet so someone can see what went wrong and fix it.
Route failed rows to a separate sheet
Add a step after error detection to move failed rows to a separate Google Sheets tab so the team can triage them without digging through the main list.
Notify the team when errors reach a threshold
Include a condition to check if error count exceeds a limit, then send a Slack alert so the team knows the sync is having problems and needs attention.
How it works
- Check for new rows every 5 minutes. The automation runs on a schedule every 5 minutes to look for rows that need to sync to Salesforce.
- Fetch rows from the spreadsheet. Get all rows from the Google Sheets spreadsheet so each one can be processed and sent to Salesforce as a contact.
- Look up matching data. Search the lookup table for each row to find related information that enriches the Salesforce contact record with additional details.
- Create contact or log error. Try to create a contact in Salesforce for each row. If it fails, log the error message and mark the row as failed so someone can review it.
- Update the row with result. Mark each row in Google Sheets to show whether the sync succeeded or failed, so the team knows which contacts made it to Salesforce.