Intro
Google Sheets is a spreadsheet program, part of a free, web-based software office suite offered by Google within its Google Drive service. The program allows users to create and edit spreadsheets online while collaborating with other users in real-time. To learn more about the Google API, visit their page (https://developer.google.com ). You export data to Google Sheets in the Data Center. This topic discusses the fields and menus that are specific to the Google Sheets Writeback connector user interface. General information for adding DataSets, setting update schedules, and editing DataSet information is discussed in Adding a DataSet Using a Data Connector.Prerequisites
To configure this connector, you will need the following:- A project created in the Google Developers Console with the Google Sheets API enabled.
- A Google Service Token JSON file.
Step 1: Creating a Project in the Google Developers Console
To create a project in the Google Developers Console, do the following:- Go to https://console.developers.google.com.
-
Click the dropdown arrow next to
My Project.

-
Click
New Project.

- Name your project and select the parent folder.
-
Click
Create.
Note: You can also use an existing project if you want.
Step 2: Enabling the Google Sheets API
To enable the Google Sheets for your project, do the following:-
In the Google Developers Console, select your project and click
Library.

- Search for the Google Sheets API.
-
Click
Enable.

Step 3: Creating a Service Account
To create a Service Account, do the following:- In the Google Developers Console, open the Credentials tab.
-
Click
+ Create Credentials then select Service account.

- Name the new Service account.
- Click Create and Continue.
- In the Role dropdown, select Basic > Owner.
- Click Done.
-
Click on the Email field under
Service Accounts.

-
Click on the
Keys option.

- Click Add Key and then select Create New Key.
-
Choose
JSON, click Create.
Select a safe location for the file as you will need it soon.

-
Copy the email address for the project you created.

- Open https://sheets.google.com and create a new sheet.
- Share the sheet with the email address you copied in step
- (The email address owner must have at least Editor-level privileges.)
-
Copy the URL to the spreadsheet, as you will need it later.
The spreadsheet URL should look similar to the following:
docs.google.com/spreadsheets/d/<googlesheetID>/edit#gid=0
Configuring the Connection
This section enumerates the options in the Credentials and Details panes in the Google Sheets Writeback Connector page. The components of the other panes in this page, Scheduling and Name & Describe Your DataSet, are universal across most connector types and are discussed in greater length in Adding a DataSet Using a Data Connector.Credentials Pane
This pane contains fields for entering credentials to connect to your Domo developer account as well as your Google Sheet. The following table describes what is needed for each field:Field | Description |
|---|---|
Service Token JSON | Paste the JSON Service Token you generated in Step 3: Creating a Service Account, in the “Prerequisites,” above. |
Details Pane
This pane contains a number of fields for specifying your data and indicating where it’s going.Menu | Description |
|---|---|
| Input Sheet ID | Enter the ID of the Google Sheet you want to push your data to. This is the portion of the URL between /d/ and /edit . For example, in the URL https://docs.google.com/spreadsheets/d/18z/ N0RQ8HIaEj2USwtAkCMX7AKBI-x-_vq24kPd4_Tsk/edit#gid=0 , the ID is N0RQ8HIaEj2USwtAkCMX7AKBI-x-_vq24kPd4_Tsk . |
Input DataSet ID | Enter the DataSet ID (GUID) for the DataSet you want to copy to a Google Drive folder. You can find the ID by opening the details view for the DataSet in the Data Center and looking at the portion of the URL following datasources/ . For example, in the URL https://mycompany.domo.com/datasources/845305d8-da3d-4107-a9d6-13ef3f86d4a4/details/overview , the DataSet ID is 845305d8-da3d-4107-a9d6-13ef3f86d4a4. |
| Sheet Name | Enter the sheet name. Note: If you do not specify a sheet name, the connector will use the sheet name as ‘Sheet1.’ |

Other Panes
For information about the remaining sections of the connector interface, including how to configure scheduling, retry, and update options, see Adding a DataSet Using a Data Connector. Note: Google Sheets writeback only supports replacing the entire sheet, and it does not support appending to a sheet.FAQs
What kind of credentials do I need to power up this connector?
What kind of credentials do I need to power up this connector?
Where can I find my service account key JSON?
Where can I find my service account key JSON?
- Open the IAM & Admin page in the GCP Console.
- In the left navigation, click Service accounts.
- Select your project and click Open.
- Click Create Service Account.
- Enter a service account name and service account description. Click Create.
- Select a role you wish to grant to the service account (Project Owner). Click Continue.
- Click Create key. Select JSON key type. Click Create. Private key will be saved to your computer.
- Close the pop up. Click Done.
How frequently will my data update?
How frequently will my data update?
Are there any API limits that I need to be aware of?
Are there any API limits that I need to be aware of?
How do I find the Input Dataset ID?
How do I find the Input Dataset ID?
https://customer.domo.com/datasources/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/details/settingsHow do I find the Input Sheet ID?
How do I find the Input Sheet ID?
What is the Sheet Name?
What is the Sheet Name?