Google Sheets | Qlik CloudHjälp
Gå till huvudinnehåll Gå till ytterligare innehåll

Google Sheets 

Google Sheets is a web-based application that enables users to create and update spreadsheets in real time.

Google Sheets integration will generate tables containing data related to metadata and the individual sheets within a spreadsheet.

Se delavsnittet Schema för en lista över objekt som är tillgängliga för replikering.

Preparing for authentication

To access your data, you need to authenticate the connection with your account credentials.

Anteckning om informationKontrollera att kontot du använder har läsåtkomst till de tabeller som du vill hämta.

You need administrator permissions in your Google Search Console account.

To enable Google Sheets API:

  1. Log into your Google Search Console account.
  2. Create or select a project.
  3. Navigate to APIs & Services > + Enable APIs and Services.
  4. Search for Google Sheets API.
  5. Click Enable.

To retrieve your client ID and secret:

  1. Log into your Google Search Console account.
  2. Create or select a project.
  3. Navigate to APIs & Services > Credentials.
  4. Select your OAuth app in the OAuth 2.0 Client IDs section. The client ID and secret are displayed.
  5. Make sure Authorized Redirect URIs is set to https://connector.qlik.com/auth/oauth/v3.htm.
  6. To create a new client ID, click Create Credentials.
  7. In the Data Access section, click Add or remove scopes.
  8. Select the following scopes:
    • .../auth/userinfo.profile
    • .../auth/spreadsheets.readonly
    • .../auth/drive.metadata.readonly
  9. Click Update.
  10. Click Save
  11. In the Audience section, set User types to Internal.

    Set up your OAuth 2.0 app in Google Cloud Platform for internal use. If you set the audience to external, you may need to submit the OAuth 2.0 app for verification by Google.

Creating the connection

Mer information finns i Koppla till SaaS-program.

  1. Klicka på Autentisera när du har fyllt i de nödvändiga anslutningsinställningarna.

    Du kan ombes att logga in på källprogrammet.

    Ett fönster visas med en autentiseringskod.

  2. Kopiera koden till urklipp och återgå till anslutningsdialogen.

  3. Klistra in koden i Slutför autentisering med koden som tillhandahålls av källan och klicka på Verifiera.

    Anteckning om tipsDu kan behöva rulla nedåt för att se det här fältet.

    När statusen är Verifierad har autentiseringen verifierats.

  4. Ange ett namn på kopplingen i Kopplingsnamn.

  5. Välj Öppna kopplingsmetadata för att definiera metadata för kopplingen när den har skapats.

Connection settings
SettingDescription
Data gateway

Välj en Gateway för dataflytt om det krävs för ditt användningsfall.

Anteckning om information

Detta fält är inte tillgängligt med Qlik Talend Cloud Starter-prenumerationen eftersom den inte stöder Gateway för dataflytt. Om du har en annan prenumerationsnivå och inte vill använda Gateway för dataflytt väljer du Inget.

Information om fördelarna med Gateway för dataflytt och användningsfall som kräver det finns i Qlik Data Gateway – dataflytt.

Start Date

Ange det datum, i formatet MM/DD/YYYY, från vilket data måste replikeras från din källa till ditt mål.

Spreadsheet IDThe part of the URL when viewing or editing a Google sheet.

Example: https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit?gid=SHEET_ID#gid=SHEET_ID

For more information, see the Google documentation.

Client IDClient ID.
Client SecretClient secret.

Schema

Anteckning om information

Schemas and naming conventions can change from version to version. It is recommended to verify your version before continuing.

The schema and info displayed below is for version 1.

Depending on your destination, table and column names may not appear as they are outlined below.

sheet_metadata

The sheet_metadata table contains metadata about the sheets within the spreadsheet defined in the integration’s settings.

Replication Method

Full Table

Primary Key

sheetId

Useful links

Google Sheets documentation

Google Sheets API method

sheets_loaded

The sheets_loaded table contains metadata about individual sheets loaded to your destination.

Replication Method

Full Table

Primary Keys

sheetId

spreadsheetId

loadDate

Useful links

Google Sheets documentation

Google Sheets API method

spreadsheet_metadata

The spreadsheet_metadata table contains metadata about the spreadsheet defined in the integration’s settings.

Replication Method

Full Table

Primary Key

spreadsheetId

Useful links

Google Sheets documentation

Google Sheets API method

Var den här sidan till hjälp för dig?

Om du stöter på några problem med den här sidan eller innehållet på den, t.ex. ett stavfel, ett saknat steg eller ett tekniskt fel – meddela oss!