Skip to content

Google Sheets Activities

Version: 1.0.0  ·  ID: zoan-packages-googlesheets  ·  Author: Zoan Software

The Google Sheets package reads and writes Google Sheets directly to the cloud (via its API). It’s the equivalent of Excel for Google Docs - ideal when data lives in a shared Google Drive sheet that is updated by multiple people or systems.

Unlike Excel (which opens a local file), Google Sheets accesses a sheet in the cloud, so you need authorization. That authorization is configured once on Zoan Cloud as a Google OAuth connection, and then references it by name.

What you needWhere to get it
OAuth connectionIt is configured in Zoan Cloud (you authorize access to your Google account). It references it by name in the credential parameter.
Sheet ID (spreadsheetId)It’s in the URL of the sheet: docs.google.com/spreadsheets/d/{ID}/edit — copy the {ID} part.

All operations work on a session that you open with Google Sheets — Open (passing the connection and ID) and share with the other activities:

  • With body: activities inside inherit the session; When finished it closes itself.
  • Without body: You save the session in a variable and close it with Google Sheets — Close.
Google Sheets — Open credential = "google-clinica" spreadsheetId = = idHoja
└─ body:
Google Sheets — Read sheet sheet = "Citas" has-headers = true → output: citas
... procesar ...
  • Cells and ranges use A1 notation: A1, B3, A1:E10, A:E (full columns).
  • Sheets: by name ("Citas"); if you omit it, use the first/active one.
  • has-headers: In reads, if you set it to true, the first row is treated as headers and the result is a DataTable; if false (default), returns a list of raw rows.
ActivityTypeOutputWhat it does
Google Sheets — Opengooglesheets-openZoanGoogleSheetsSessionOpen an authenticated session with a sheet
Google Sheets — Closegooglesheets-closeSign out
ActivityTypeOutputWhat it does
Read sheetgooglesheets-read-sheetDataTable / ListRead a whole page
Read rangegooglesheets-read-rangeDataTable / ListRead a range
Read cellgooglesheets-read-cellobjectRead a cell
Used rangegooglesheets-get-used-rangeDictionaryDimensions of the data area
Get sheet namesgooglesheets-get-sheet-namesListLeaf names
Find cellgooglesheets-find-cellDictionaryFind a cell by value
Find rowgooglesheets-find-rowobjectFind a row by column value
ActivityTypeOutputWhat it does
Write sheetgooglesheets-write-sheetWrite data from A1
Write rangegooglesheets-write-rangeWrite in a range
Write cellgooglesheets-write-cellWrite a cell
Append rowsgooglesheets-appendAdd rows to the end
Clear rangegooglesheets-clear-rangeClear the contents of a range