Skip to main content

Part 1: Google Sheets Data Ingestion

Set up a Google service account so Configview can read your spreadsheets and pull each tab into its own database table.

Step 1: Create a Google Cloud project

  1. Go to the Google Cloud Console.
  2. Click the project dropdown (top-left) > New Project.
  3. Name it configview-integration (or reuse the project you created for other Configview integrations), pick your Organization, and click Create.

Step 2: Enable the Google Sheets API

  1. In the Cloud Console, open APIs & Services > Library.
  2. Search for Google Sheets API and click Enable.
The Sheets API is required: it reads the spreadsheet’s tabs and cell values. Configview requests only the read-only Sheets scope (spreadsheets.readonly), so it can never edit a sheet, and it does not call the Drive API. Enabling the Drive API is harmless but no longer needed; if you already enabled it you don’t need to change anything.

Step 3: Create a service account and download the JSON key

  1. Open IAM & Admin > Service Accounts > Create Service Account.
  2. Name it configview-sheets and click Create and continue. No project roles are needed — click Continue then Done.
  3. Open the service account you just created, go to the Keys tab, click Add Key > Create new key.
  4. Choose JSON and click Create. The key file downloads automatically.
  5. Open the file in a text editor. Copy the value of the client_email field (it looks like configview-sheets@your-project.iam.gserviceaccount.com) — you’ll need it in the next step. Keep the whole file contents handy for Step 6.
Treat this JSON like a password — anyone with the contents can read every sheet shared with the service account.

Step 4: Share each sheet with the service account

Service accounts are separate Google identities. They cannot read any sheet by default — you must share each spreadsheet with them explicitly.
  1. Open the Google Sheet you want Configview to ingest.
  2. Click Share in the top-right.
  3. Paste the client_email from Step 3 into the Add people and groups field.
  4. Set the role to Viewer and uncheck Notify people (the service account has no inbox).
  5. Click Share.
Repeat for every sheet you plan to ingest.

Step 5: Enable the Google Sheets app in Configview

  1. Go to https://{companyname}.configview.com/admin/integrations/Google%20Sheets.
  2. Click Connect. Configview creates its tables and schedules every collector at your default run time.
  3. Click Verify now to confirm the credentials work.
Connecting creates an empty GSHEETS_SERVICE_ACCOUNT_JSON credential for you. Disconnecting later deletes it and disables any scheduled runs.

Step 6: Paste the JSON key into the secret

  1. Go to https://{companyname}.configview.com/admin/integrations/Google%20Sheets.
  2. In the Credentials rail on the right, find the GSHEETS_SERVICE_ACCOUNT_JSON entry created by Step 5.
  3. Paste the entire contents of the JSON key file (everything from the opening { to the closing }) as the value and Save.
To rotate the key later, generate a new one in Google Cloud and update the same secret value.

Step 7: Import a sheet

  1. Go to https://{companyname}.configview.com/admin/integrations/Google%20Sheets and scroll to Registered sheets.
  2. Paste the full Google Sheet URL (or just the spreadsheet ID — the part between /d/ and /edit in the URL).
  3. Click Insert.
Configview registers the sheet and loads it straight away: every tab becomes its own database table. When it finishes, a message tells you how many tabs and rows were loaded and anything it had to adjust (for example a repeated heading). If something went wrong, the message says what and how to fix it. Table names start with a prefix taken from the workbook title, so a workbook titled 2026 Finance with a tab named Q1 Headcount becomes the table gs_2026_finance_q1_headcount. If another registered workbook already uses that prefix, the new one gets _2 on the end (gs_2026_finance_2_q1_headcount), so workbooks never overwrite each other.

Step 8: Keep it up to date

Nothing more to set up. Connecting in Step 5 scheduled the Sheet Data collector at your default run time, and every run reloads every sheet in Registered sheets. Insert, the scheduled run, Run now on Sheet Data and the refresh icon on a sheet’s row all use the same loader, so they always produce the same tables.
  • Refresh one sheet now: click the refresh icon on its row in Registered sheets.
  • Refresh every sheet now: under Collectors, click Run now on Sheet Data.
  • Change when it runs: under Collectors, open Sheet Data > Edit schedule. A running schedule has to be stopped before its timing can be changed — Stop schedule, set the new time, then Start schedule.
The Last refresh column shows when each sheet was last loaded and the result: Every run is also recorded in the Activity log at /admin/activity/ under Google Sheets.

Step 9: Verify

  1. On https://{companyname}.configview.com/admin/integrations/Google%20Sheets, click Verify now. It checks that the GSHEETS_SERVICE_ACCOUNT_JSON secret is populated and parseable, that the service account can sign in to Google, and that every registered sheet is still readable (a warn means a share was revoked). /admin/status/ is server health — disk, memory, CPU, scheduler — not this.
  2. Open the SQL editor and confirm each tab shows up as its own table with the columns and row count you expect.
If an import fails, the message tells you why:

How a tab becomes a table

  • Row 1 is the heading row. Each heading becomes a column name: lowercased, with anything that is not a letter, digit or underscore turned into _. Amount ($) becomes amount____, Start Date becomes start_date.
  • Repeated headings get _2, _3 on the end (name, name_2).
  • A heading called ID becomes id_2, because every table already has an id column numbering the rows in sheet order.
  • Columns with a blank heading are skipped. If they contain values, the import message says how many were left out.
  • Values are stored exactly as the sheet shows them, as text. 00123 stays 00123, a date stays as displayed, and a number formatted as 1,200.50 is stored as 1,200.50. Convert in SQL when you need a number, for example:
  • Blank rows are skipped. A tab with only a heading row gives an empty table. A completely empty tab is skipped and any table it had is left as it was.
  • The table always matches the sheet. Add, remove or rename a column and the next refresh reflects it. Each refresh replaces the table’s rows; history is not kept.
  • Long or similar tab names still get their own table. Table names are limited to 64 characters, so a long name is shortened and ends in a short code. Two tabs whose names come out the same (Q1 Plan and Q1-Plan) get distinct tables the same way. The import message names the table in both cases, and the name stays the same on every refresh.
  • One bad tab never stops the others. Each tab loads on its own and swaps in only once it is complete, so readers never see a half-loaded or empty table.

Limitations (current release)

  • Removed or renamed tabs aren’t cleaned up. A deleted tab’s table stays in the database, and a renamed tab gets a new table alongside the old one.
  • Removing a sheet keeps its tables. The delete icon in Registered sheets stops future refreshes; drop the tables yourself if you no longer want them.
  • Single service account. All registered sheets use the same GSHEETS_SERVICE_ACCOUNT_JSON secret.
  • Not available on the public demo, which has no Google credentials.

Data Tables

Each tab becomes one table named <prefix>_<tab>. Example for a workbook titled 2026 Finance: The exact prefix for each sheet is shown in the Table Prefix column of Registered sheets.