Sync Google Sheets contacts to Salesforce with validation
Document/FileCRMMarketing
What it does
When a new or updated row appears in a Google Sheet, this automation checks if the company exists in Salesforce. It creates the company and contact only when no matches are found.
Who it's for
Sales operations teams who need to keep Salesforce contacts in sync with a Google Sheet without manual data entry.
Apps used
How teams use this
Prevent duplicate accounts and contacts
Search Salesforce before creating so the same company and contact are never added twice. The spreadsheet stays the source of truth and Salesforce stays clean.
Handle missing company data gracefully
When a spreadsheet row has no company name, skip the account step and go straight to creating the contact. This keeps the flow moving for individual prospects.
Add email validation before contact creation
Include a condition to check that the email field is not blank before creating the contact in Salesforce. Only valid records make it into the CRM.
Link contacts to accounts automatically
Set the account ID on the new contact record so it is tied to the company account created in step 3. Contacts and accounts stay related without manual work.
How it works
- Monitor the spreadsheet for changes. A new or updated row in the Google Sheet triggers this automation in real time so contacts stay current in Salesforce.
- Check if company exists. Search Salesforce for an account matching the company name from the spreadsheet row. If the company field is blank, skip to the contact step.
- Create the account when missing. When no account is found in Salesforce, create a new account record with the company name from the spreadsheet.
- Search for the contact by name. Search Salesforce for a contact that matches the name from the spreadsheet row so duplicates are not created.
- Create the contact when missing. When no contact is found in Salesforce, create a new contact record with the name and details from the spreadsheet row.