← All posts

How to Connect Google Sheets to Salesforce (Both Ways)

Connect Google Sheets to Salesforce for free with Google's add-on, or sync automatically with Apps Script. Setup steps, limits, and how to avoid duplicates.

By Ali Ajmal, Salesforce consultant at Modeverse · December 4, 2026 · 5 min read

How to Connect Google Sheets to Salesforce (Both Ways)

The quickest way to connect Google Sheets to Salesforce is Google's free Data connector for Salesforce add-on. It pulls Salesforce reports or records into a sheet, refreshes them on a schedule, and can push edits made in the sheet back to Salesforce. If new rows in a sheet should become Salesforce records automatically, with no one pressing a button, you need a small script or an integration tool instead.

This guide covers both directions, the four ways to set it up, and the mistakes that cause duplicates and failed rows.

Which way does your data need to go?

Decide this first, because it decides the method:

  • Salesforce → Sheets. You want a report or list in a sheet for a manager, a partner or a dashboard. The free add-on is usually enough.
  • Sheets → Salesforce, once. You have a list to load or update a single time. Use the add-on, Data Import Wizard or Data Loader.
  • Sheets → Salesforce, automatically. Rows keep arriving in a sheet, from a form, an event list, a partner or a website, and each one should become a lead, contact or order in Salesforce. You need Apps Script, an integration tool, or a custom integration.
  • Both ways, continuously. The sheet and Salesforce must stay in step. This is the hardest case, and usually a sign that the sheet should become a Salesforce report or screen instead.

Option 1: Google's free Data connector for Salesforce

Google publishes a free add-on that can pull in a Salesforce report, import data with a custom query or SOQL, and insert or update records from the sheet. It can also delete Salesforce records, so give it to people who understand what they are changing.

To set it up:

  1. Open a sheet and go to Extensions → Add-ons → Get add-ons.
  2. Search for Data connector for Salesforce and install it.
  3. Open it from Extensions and sign in with your Salesforce login.
  4. Choose Reports to pull an existing report, or Import to pick objects, fields and filters (up to 5 source objects).
  5. Set a refresh. Scheduled refreshes run every 4, 8 or 24 hours.

To send changes back, edit the imported rows and use Update in the add-on sidebar.

Where it falls short: the refresh is every 4 hours at best, nothing happens when a new row is added, and every write runs as the person who clicked. For a live feed of new rows into Salesforce, it is the wrong tool.

Option 2: A paid Sheets add-on

Paid add-ons such as G-Connector give faster schedules (down to hourly), automatic pushes from the sheet to Salesforce on a schedule, and snapshots of the data over time. They suit teams that work in spreadsheets every day and want more control than the free add-on, without any code. You pay per user, and the logic still lives in someone's spreadsheet.

Option 3: Zapier or Make

An integration tool can watch a sheet for new or updated rows and create or update a Salesforce record for each one. It is quick to set up and needs no code. The downsides are a monthly bill that grows with the number of rows, errors that land in another tool's dashboard, and duplicates if a row is edited after it has already been sent.

Option 4: Apps Script and the Salesforce API

For a reliable, automatic sync with no monthly tool fee, a Google Apps Script attached to the sheet can call the Salesforce REST API directly. This is how we build it:

  1. Create an External Client App in Salesforce. Since Spring ’26, Salesforce blocks the creation of new Connected Apps by default, so new integrations should use External Client Apps. Enable OAuth with the client credentials flow and set a dedicated integration user as the run-as user.
  2. Add an External ID field on the target object, for example Sheet_Row_ID__c on Lead, marked unique.
  3. Write the script. It gets an access token, reads rows that have not been sent, and upserts each one using the External ID. Upsert updates the record if the row was sent before and creates it if not, which is what stops duplicates.
  4. Write the result back to the sheet. Put the Salesforce record ID, a status and any error message in columns at the end of each row, so everyone can see what happened.
  5. Run it on a trigger. A time-driven trigger every few minutes, or an installable on-change trigger, sends new rows without anyone clicking.
  6. Keep secrets out of the sheet. Store the client ID and secret in Script Properties, not in cells.

Your Salesforce edition must allow API access. Enterprise, Unlimited, Performance and Developer editions include it; Professional Edition needs it added.

What goes wrong when syncing Sheets with Salesforce?

These are the problems we fix most often:

  • Duplicates. Rows are sent again after an edit, or two people run the sync. Fix it with an External ID and upsert, not insert.
  • Missing required fields. Salesforce leads need a Last Name and Company. A sheet without a company column fails every row.
  • Date and number formats. Salesforce expects dates as yyyy-MM-dd and decimals with a point. Sheets set to another locale send 04/12/2026 or 1.234,50, which fail or land in the wrong month. Our free Data Loader CSV cleaner fixes these for one-off loads.
  • Picklist values. "Calif." in the sheet will not match "California" in a restricted picklist.
  • 15- and 18-character IDs. Lookups copied from reports are often 15-character IDs. Convert them with our Salesforce ID converter before matching.
  • Validation and duplicate rules in Salesforce silently rejecting rows. Always write the error back to the sheet.
  • Deleted or reordered rows. If the script tracks rows by row number, sorting the sheet breaks everything. Track by a row ID column instead.

Should the data live in a spreadsheet at all?

Sometimes the honest answer is no. If a sheet is where your team really works on leads or orders, every sync is a patch over two sources of truth. A Salesforce list view, a report shared with partners, or a simple Experience Cloud page often removes the need for the sheet. Sheets are best as an input (forms, imports, partner lists) or an output (reports for people outside Salesforce), not as a second CRM.

Summary

For reports in a sheet, use Google's free Data connector for Salesforce with a scheduled refresh. For one-off loads, use the add-on or Data Loader. For new rows that should become Salesforce records automatically, use Apps Script with an External Client App and upsert on an External ID, and write the result of every row back to the sheet so nothing fails quietly.

If you would rather have it built and tested for you, our Salesforce integration developers set up Sheets, forms and websites to feed Salesforce as part of our integration services. Send us your sheet's columns and what should happen in Salesforce, and we will reply with a fixed price, or book a free call. Getting leads from ads too? See Facebook Lead Ads to Salesforce.

Want us to look at your setup?

Book a free 30-minute call. We will look at your Salesforce or CRM and tell you honestly what we would change first.