Skip to main content

Google Drive Connections

Follow this guide to configure a Google Drive connection in an Alteryx Analytics Cloud workspace:

Create OAuth 2.0 Client App

Before the connection configuration, make sure to have the client app ready.

  1. Go to Google Console.

  2. Select Create Project.

  3. Enter a Project name and other information.

  4. Select ENABLE APIS AND SERVICES from the APIs & Services dashboard.

  5. Search for Google Drive API and select it.

  6. Select ENABLE.

  7. Search for Google Sheets API and select it.

  8. Select ENABLE.

  9. Navigate to Credentials and select CREATE CREDENTIALS, then select OAuth client ID.

  10. Select CONFIGURE CONSENT SCREEN.

  11. Select External and select CREATE.

  12. Enter App name, User support email, and Developer contact information.

  13. Select SAVE AND CONTINUE.

  14. When you finish the setup, select PUBLISH APP and then CONFIRM.

  15. Navigate to Credentials and select CREATE CREDENTIALS, then select OAuth client ID.

  16. In Application type, select Web application.

  17. In Authorized redirect URIs, select ADD URI and enter the URI of your Alteryx Cloud tenant:

  18. Select CREATE.

  19. The console displays the Client ID and the Client Secret.

Create Google App in AACAAC

To connect to Google Drive, your admin has to create a Google app in AACAAC.

  1. Select your profile picture and go to Workspace Admin.

  2. In the Connectivity category, select OAuth Clients and then select Create.

  3. Enter an appropriate name.

  4. Select the google technology.

  5. Enter your Client ID and Client Secret from the Create OAuth 2.0 Client App section.

  6. Enter these values:

    • Authorization URL: https://accounts.google.com/o/oauth2/v2/auth

    • Token URL: https://oauth2.googleapis.com/token

    • Scopes: https://www.googleapis.com/auth/drive

  7. Enter the Access Token Expiry and Refresh Token Expiry time limits of your choice.

Create Google Drive Connection

Go to the  Connections Page for more information.

  1. To create the connection, navigate to the Connections page.

  2. Select Create Connection and search for Google Drive. You can also find it under the File-API tab under the search window.

  3. Select the Google Drive card.

  4. Once the connection configuration form opens up

    • name the connection appropriately,

    • select the appropriate OAuth client from the dropdown for OAuth Client,

    • select Authenticate.

  5. You are led through a regular OAuth 2.0 flow of authenticating against your Google Drive cloud tenant app.

  6. Once the authentication is successful, save your connection and start using it in workflows.

Filtering Capability Under the Output Tool in AACAAC

Follow these steps to setup the configuration for Google Drive in a workflow:

  1. Drop an Output Tool onto the canvas.

  2. Select the Google Drive cloud connection and let it load the browsing experience for finding Google Drive files.

  3. Select the destination for the dataset at the preferred drive.

  4. Locate the correct folder as applicable and select it.

  5. Find the appropriate file under the folder,

    • optionally, enter a new File Name,

    • select Next.

  6. Select either Create New or Overwrite.

    注記

    If you select the Create New option, every time you run the job, AACAAC will create a new file with a unique name. If you want to overwrite the data instead, you need to change the connection after you create the file. Select the newly created file and then select the Overwrite option.

  7. Select the Column Delimiter. The options are comma (default), tab, semicolon, or pipe.

  8. Optionally, clear the check boxes to include quotes and to include column names as first row. Both are selected by default.

  9. Select Confirm.

Known Limitations

  • Google Drive connection is write-only.

  • Only CSV files are supported as the output format.

  • Output tool does not show an error if the user edited a tested connection with incorrect values. The test connection passes, but the Output tool doesn't show any files linked with the user.