> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Drive Writeback Connector

export const InlineImage = ({src, alt = '', height = '1.6em'}) => {
  return <img noZoom src={src} alt={alt} style={{
    display: 'inline',
    verticalAlign: 'start',
    height: height,
    margin: '0'
  }} />;
};

## Intro

Google Drive is a file storage and synchronization service developed by Google that allows users to store files in the cloud, synchronize files across devices, and share files. Use this connector to export your data from a Domo DataSet into Google Drive. To learn more about the Google Drive API, visit their page ([https://developers.google.com/drive/](https://developers.google.com/drive/ "https://developers.google.com/drive/") ).

You export data to Google Drive in the Data Center. This topic discusses the fields and menus that are specific to the Google Drive 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](/s/article/360042926274 "Adding a DataSet Using a Data Connector").

<Note>
  **Note:** The owner of a writeback dataset must also be an owner or co-owner of the input dataset.
</Note>

## Prerequisites

To configure this connector, you will need the following:

* A project created in the Google Developers Console with the Google Drive API enabled.
* A Domo Client ID and Client Secret.
* A Google Service Token JSON file.

The following steps explain in detail how to create your project and obtain the needed credentials.

### Step 1: Creating a Project in the Google Developers Console

To create a project in the Google Developers Console, do the following:

1. Go to
   [https://console.developers.google.com](https://console.developers.google.com "https://console.developers.google.com").

2. Click the dropdown arrow next to
   **My Project**.

   <Frame>
     <img alt="googlesheets_writeback_1.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123L9-00N5w00000Ri7BU-0EM5w000005vO5e.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=f03feb392ea59ce30f3bb25369729015" width="675" height="250" data-path="images/kb/ka05w00000123L9-00N5w00000Ri7BU-0EM5w000005vO5e.png" />
   </Frame>

3. Click
   **New Project**.

   <Frame>
     <img alt="googlesheets_writeback_2.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123L9-00N5w00000Ri7BU-0EM5w000005vO5Z.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=b44efa97c8a173faf5f4babcd3a21d71" width="596" height="158" data-path="images/kb/ka05w00000123L9-00N5w00000Ri7BU-0EM5w000005vO5Z.png" />
   </Frame>

4. Name your project and select the parent folder.

5. Click
   **Create**.

   <Note>
     **Note:** You can also use an existing project if you want.
   </Note>

### Step 2: Enabling the Google Drive API

To enable the Google Sheets for your project, do the following:

1. In the Google Developers Console, select your project and click
   **Library**.

   <Frame>
     <img alt="googlesheets_writeback_3.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOA9.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=e621c7a2594bb1df7e39086bafc16d69" width="389" height="225" data-path="images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOA9.png" />
   </Frame>

2. Search for the Google Drive API.

3. Click
   **Enable**.

   <Frame>
     <img alt="googledrive_writeback_1.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAK.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=3ae132a8426a67b01c1980322b9b6c1b" width="700" height="369" data-path="images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAK.png" />
   </Frame>

### Step 3: Creating a Service Account

To create a Service Account, do the following:

1. In the Google Developers Console, open the
   **Credentials** tab.

2. Click
   **Create credentials** then select **Service account key**.

   <Frame>
     <img alt="googlesheets_writeback_5.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAJ.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=4f1f8ff66904b3dda13783fc66ef02a2" width="800" height="537" data-path="images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAJ.png" />
   </Frame>

3. Select
   **New service account**.

4. Name the new service account.

5. In the
   **Role** dropdown, select **Project > Owner**.

6. For the
   **Key type**, select **JSON**.

   <Frame>
     <img alt="googledrive_writeback_2.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAH.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=185c0264e3a4d27502c4560622c8563f" width="600" height="603" data-path="images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAH.png" />
   </Frame>

7. Click
   **Create**, then **Save**.

8. Select a safe location for the file, as you will need it soon.

9. Once the file is created, click
   **Manage service accounts** on the far right.

   <Frame>
     <img alt="googledrive_writeback_3.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOA2.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=6f9607f4c962cf7372080b7acd644e97" width="800" height="243" data-path="images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOA2.png" />
   </Frame>

10. Copy the email address for the project you created.

    <Frame>
      <img alt="googledrive_writeback_4.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAG.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=0f0c4c57f20c5aab8771cfc9db165d69" width="569" height="247" data-path="images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAG.png" />
    </Frame>

11. Log into the Google Drive account ([https://www.google.com/drive](https://www.google.com/drive "https://www.google.com/drive") ) in which you want to save the files.

12. Create a new Google Drive folder.

    <Frame>
      <img alt="googledrive_writeback_5.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAD.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=8c33f0289d0150dc7c4be5e23cc8a7ce" width="315" height="368" data-path="images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAD.png" />
    </Frame>

13. Go into the new folder and share it with the email address you copied in step 10.

14. Copy the URL into the folder, as you will need to refer to it later. It will look something like this:

    [https://drive.google.com/drive/folders/1TOdpy2kki8-pealAGXWwCYF8EyiwxWMW](https://drive.google.com/drive/folders/1TOdpy2kki8-pealAGXWwCYF8EyiwxWMW)

### Step 4: Creating a Domo Client ID and Client Secret

To create a Domo client ID and client secret, do the following:

1. Navigate to [https://developer.domo.com](https://developer.domo.com "https://developer.domo.com") and log in.
2. Click
   **New Client** (found under "My Account" in the top right corner).
3. Create a new client with Application Scopes of
   **Data** and **User**.

   <Frame>
     <img alt="googledrive_writeback_6.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOA8.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=bc42e517fb8457ff1ad3f4df19e49eda" width="500" height="435" data-path="images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOA8.png" />
   </Frame>

   When you click **Create**, you will be redirected to the client ID and client secret.
4. Copy the client ID and client secret, as you will need them soon.

## Configuring the Connection

This section enumerates the options in the **Credentials** and **Details** panes in the Google Drive 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](/s/article/360042926274 "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 Drive destination folder. The following table describes what is needed for each field:

<table border="1" cellpadding="1" cellspacing="1" data-aura-rendered-by="33:201;a"><thead><tr><th colspan="1" rowspan="1"><p><span class="s1"> Field </span></p></th><th colspan="1" rowspan="1"><p><span class="s1"> Description </span></p></th></tr></thead><tbody><tr><td colspan="1" rowspan="1"><p> Domo Client ID </p></td><td colspan="1" rowspan="1"><p> Paste the Domo client ID you copied in Step 4: Creating a Domo Client ID and Client Secret, in the "Prerequisites" section above. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Domo Client Secret </p></td><td colspan="1" rowspan="1"> Paste the Domo client secret you copied in Step 4: Creating a Domo Client ID and Client Secret, in the "Prerequisites" section above. </td></tr><tr><td colspan="1" rowspan="1"><p> Service Token JSON </p></td><td colspan="1" rowspan="1"><p> Paste the JSON Service Token you generated in Step 3: Creating a Service Account, in the "Prerequisites," above. </p></td></tr></tbody></table>

<Frame>
  <img alt="googledrive_writeback_7.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAI.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=6b9216fa3fa871a85bec74d66ec49646" width="450" height="381" data-path="images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAI.png" />
</Frame>

Once you have entered valid credentials, you can use the same account any time you go to set up a new Domo-Google Drive connection. You can manage connector accounts in the **Accounts** tab in the Data Center. For more information about this tab, see [Managing User Accounts for Connectors](/s/article/360042926054 "Managing User Accounts for Connectors").

### Details Pane

This pane contains a number of fields for specifying your data and indicating where it's going.

<table border="1" cellpadding="1" cellspacing="1" data-aura-rendered-by="33:201;a"><thead><tr><th colspan="1" rowspan="1"><p> Menu </p></th><th colspan="1" rowspan="1"><p> Description </p></th></tr></thead><tbody><tr><td colspan="1" rowspan="1"><p> Input Folder ID </p></td><td colspan="1" rowspan="1"><p> Enter the ID of the Google Drive folder you want to push your data to (which you should have copied in Step 3: Creating a Service Account, above). This is the portion of the URL after the last <span class="mt-font-courier-new"> / </span>. For example, in the URL <span class="nowiki"><span class="nowiki"><span class="mt-font-courier-new"><a href="https://drive.google.com/drive/folders/1TOdpy2kki8-pealAGXWwCYF8EyiwxWMW" rel="noopener" target="_blank"> [https://drive.google.com/drive/folders/1TOdpy2kki8-pealAGXWwCYF8EyiwxWMW](https://drive.google.com/drive/folders/1TOdpy2kki8-pealAGXWwCYF8EyiwxWMW) </a></span></span></span>, the ID is <span class="nowiki"><span class="nowiki"><span class="mt-font-courier-new"> 1TOdpy2kki8-pealAGXWwCYF8EyiwxWMW </span></span></span>. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Input DataSet ID </p></td><td colspan="1" rowspan="1"><p> Enter the DataSet ID (GUID) for the DataSet you want to copy to Google Drive. 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 <span class="mt-font-courier-new"> datasources/ </span>. For example, in the URL <span class="mt-font-courier-new"><span class="nowiki"><a href="https://mycompany.domo.com/datasources/845305d8-da3d-4107-a9d6-13ef3f86d4a4/details/overview" rel="noopener" target="_blank"> [https://mycompany.domo.com/datasources/845305d8-da3d-4107-a9d6-13ef3f86d4a4/details/overview](https://mycompany.domo.com/datasources/845305d8-da3d-4107-a9d6-13ef3f86d4a4/details/overview) </a></span></span>, the DataSet ID is <span class="mt-font-courier-new"> 845305d8-da3d-4107-a9d6-13ef3f86d4a4. </span></p></td></tr><tr><td colspan="1" rowspan="1"><p> Select Filename </p></td><td colspan="1" rowspan="1"><p> Select whether you want to reference your DataSet using the <b><b> Input DataSet ID </b></b> or an output file name. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Filename </p></td><td colspan="1" rowspan="1"><p> Enter the output file name for your data. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Overwrite File </p></td><td colspan="1" rowspan="1"><p> Check this box if you want to overwrite existing files of the same name. </p></td></tr></tbody></table>

<Frame>
  <img alt="googledrive_writeback_7.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/blcgkVgnZv6gj_XY/images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAC.png?fit=max&auto=format&n=blcgkVgnZv6gj_XY&q=85&s=4aef1253b7a2c6444015b99113481cf5" width="439" height="328" data-path="images/kb/ka05w00000123QW-00N5w00000Ri7BU-0EM5w000005vOAC.png" />
</Frame>

### 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](/s/article/360042926274 "Adding a DataSet Using a Data Connector").
