Salesforce Google Sheets Integration FAQ
Explore the Salesforce integration and connection guide.
General
-
Q: How do I connect Salesforce to Google Sheets?A:
- First, install the add-on from the Google Workspace Marketplace.
- Then, in Google Sheets open Extensions → Data Integrator for Salesforce → Salesforce Sign In and authorize your Salesforce account via OAuth2.
-
Q: What Google Account permissions does Data Integrator for Salesforce require and why?A: The required permissions are listed below:
- See, edit, create, and delete your spreadsheets in Google Drive™: we need this to insert content from Salesforce to your spreadsheet, make a backup copy of the spreadsheet (under development right now), etc.
- Connect to an external service: This is obvious: Salesforce is an external service.
- Allow this application to run when you are not present: we need this to run your scheduled workflows.
- Display and run third-party web content in prompts and sidebars inside Google applications: All our UI part will be shown to you in prompts and sidebars.
Download data
-
Q: How can I edit an existing query template?A: menu "Execute/Update/Delete Templates for Current Sheet" OR "Execute/Update/Delete All Templates"See How It Works
-
Q: How can I filter Salesforce data to import only the records I need?A: Menu "Get Modules Records" or Modify/Delete Pull templates", then click on tab "3. Select the fields to filter by"See How It Works
-
Q: How can I re-order columns in the resulted data set?A: By default, columns sorted alphabetically. To use a custom order, please click on the button and the use the mouse to drag the columns into desired order.
-
Q: How can I get Salesforce data using a raw SOQL query in Google Sheets?A: Use the menu "Data Integrator for Salesforce → Get Data using SOQL" and type any SOQL
SELECTstatement, for exampleSELECT Id, Name, Account.Name FROM Contact WHERE CreatedDate = LAST_N_DAYS:30. SOQL supports relationship fields, date literals, aggregates and GROUP BY — everything the visual query builder cannot express. You can write the result to a new sheet or to the current sheet starting at the active cell, with an optional header row. See the Get Data using SOQL wiki page for details and examples. -
Q: Can I save a SOQL query as a template and refresh it automatically?A: Yes. In the "Get Data using SOQL" dialog, check "Save as a template" (optionally give it a name). Saved SOQL queries appear in the "Execute/Update/Delete Templates for Current Sheet" and "Execute/Update/Delete All Templates" sidebars under the "SOQL Queries" section, where you can:
- Execute now — re-run the query; the previous output is cleared and rewritten in place;
- Open — edit the SOQL text, the header-row option or the template name, then click "Execute and Update Template";
- Delete — remove the template (the data in the sheet stays).
-
Q: I've changed data in Salesforce and refreshed the spreadsheet. However, I do not see changes in the spreadsheet.A: We use cache to keep downloaded data for 30 min., both for performance and to decrease the number of calls to Salesforce API (we have a daily limit and should pay if we exceed it). This explains why you do not see changes immediately. You have the following options:
- Wait for 30 min. since the refresh.
- Using "Data Integrator for Salesforce → Execute/Update/Delete Templates for Current Sheet" menu, change the query: add or remove column, change filter, etc. This will be considered as a new query.
-
Q: Can I sync Salesforce with Google Sheets automatically on a schedule?Workflow allows you to synchronize the Spreadsheet with Salesforce automatically, by the schedule. Using the workflow, you can:
- Add more than one template to be executed in the selected order
- Turn the execution on and off without changing the schedule
- Add or remove templates to the workflow
- Pre-load the data to deal with the extremely long queries
- Using the menu: "Get Module records" or "Modify/Delete Pull templates", create/modify the templates to download data you want the workflow to refresh.
- Repeat this operation for as many modules as you need.
- Using the menu "Automation → Create Workflow", setup the workflow:
- Enter the name and the description
- Add the templates in the desired order
- Setup the schedule
- (Optional)Check the "Pre-load long queries" if it will take more, than 6 min to execute the workflow
- If you want, turn on email notifications
- You can click "Execute immediately" to check how it works
- By default, the results of each execution will be written to tab "Automatic Operations Events Log"
-
How can I download only the new data?A: If you have many records, the full download can take a lot of time. To resolve this, you have the option to download only data created or modified since the last download. To achieve this, please do the following:
- Using the menu: "Get Module records" or "Modify/Delete Pull templates", create/modify the query.
- In the tab "3. Select the field to filter by (optional)", add filter "Since last execution" for the "Modified Time" or "Created Time" field.
- Attention: by default, each new download will erase the previous data. To avoid this, please use "Add to the previous output" option (see below).
-
How can I add downloaded data at the end of the existing data?A: Please do the following:
- Using the menu: "Get Module records" or "Modify/Delete Pull templates", create/modify the query.
- In the tab "2. Change Pull Settings (optional)", select the "Add to the previous output" checkbox.
- This is an experimental feature. The query results will be added to the end of the existing data in the spreadsheet.
- If you have one or more "Order By" criteria, the WHOLE dataset will be re-sorted, so the most recent data may become located not at the bottom.
- Please do not modify any existing data or change columns: the result can be unpredictable.
- Please be careful because it can generate duplicates. We recommend using the "Since last execution" date filter to avoid duplicates.
-
How can I use my own format for the Currency fields?A: By default, we will format all Salesforce fields with type "Currency" using an ISO 4217 for the location settings in your Google Spreadsheet. If you want to change this format, you can do the following:
- In the tab "2. Change Pull Settings (optional)", uncheck the "Format currency fields using Organization's currency" checkbox.
- Using the Google Spreadsheet "Format" menu, change the column's format to desired one.
Q: Can an external system trigger a Google Sheets refresh from Salesforce?A: Yes, using inbound webhooks:- Open the menu "Data Integrator for Salesforce → Admin Tools → Manage Webhooks" and generate a secret token.
The dialog shows your personal webhook URL
(
https://script.google.com/macros/s/<deploymentId>/exec). - Call the URL with GET or POST to refresh all saved templates:
curl -L "https://script.google.com/macros/s/<deploymentId>/exec?token=<token>&action=refresh" - Or refresh a single saved template:
curl -L -X POST "https://script.google.com/macros/s/<deploymentId>/exec" -H "Content-Type: application/json" -d '{"token":"<token>","action":"pull","uuid":"<template-uuid>","sheetId":"<sheet-id>"}' - The webhook answers with JSON:
{"status":"ok","action":"refresh"}or{"status":"error","message":"..."}. - You can call the same URL from a Salesforce Flow/Apex callout, Zapier/Make "Webhooks" action, or any scheduler.
- Keep the URL secret — anyone with the token can trigger refreshes. You can regenerate or revoke the token at any time in the same dialog.
Q: Is it possible to use Data Integrator for Salesforce on my smartphone?A: The Data Integrator for Salesforce Add-on not designed to work on mobile devices: first of all, the "Google Sheets™" app does not support Add-ons. However you can open your spreadsheet from a mobile browser using "Desktop" mode, and from it, you will be able to use some restricted functionality, like refreshing.Also, while working on the PC, you can set-up the automatic data synchronization using "Data Integrator for Salesforce → Get Automation" menu. After this, you will be able to see updated data from the "Google Sheets™" app on your smartphone.Subscriptions
-
Q: Where I can see the available subscriptions?A: To see available Salesforce subscription options, open the "Go Premium" menu in the "Data Integrator for Salesforce" add-on.
-
Q: What is your money-back policy?A: We offer a full money-back guarantee for the first 30 days and pro-rated return after.
-
Q: How can I subscribe?A: Click "Go Premium" menu in the "Data Integrator for Salesforce" add-on.
-
Q: How can I be sure that my credit card number I provide will be safe?A: We use well-known and respected PCI Level 1 certified billing platform ChargeBee. All payment processing made by them, we cannot see your credit card's number at all - ChargeBee will show us only the last 4 digits.
-
Q: I've paid for the subscription, but clicking on "Go Premium" still shows me "Trial Premium" status.A: We cache the premium subscription's status for a few hours, this is why you still see the "Trial Premium". This status gives you full access to all services, so you should not be worried.
-
Q: How can I subscribe?A: Click "Go Premium" menu in the "Data Integrator for Salesforce" add-on.
-
Q: How can I change subscription or unsubscribe?A: There are two options:
- Log into G-Integrator Subscription Manager using your Google email address and change subscription/un-subscribe
- Send us an email on [email protected] and we will do the required action.
-
Q: How can I apply the coupon?A: Click "Apply Coupon" in the first screen during the subscription. Please see the screenshot .