Google Sheets — Open
Google Sheets — Open
Section titled “Google Sheets — Open”Type: googlesheets-open · Package: Google Sheets Activities v1.0.0 · Output: ZoanGoogleSheetsSession
Opens an authenticated session with a Google Sheets and returns it as ZoanGoogleSheetsSession. It is the obligatory starting point: all other activities work on this session.
How it works
Section titled “How it works”It authenticates with Google and opens the session over the sheet ID (spreadsheetId). Two body modes:
- With
body: activities inside inherit the session; when finished it closes itself. - Without
body: returns the session as output; pass it assessionto the activities and close it with Google Sheets — Close.
Authentication
Section titled “Authentication”The authType parameter chooses how to authenticate (the Designer shows only the fields for the selected mode):
oauth(default): uses a Zoan Cloud Google OAuth connection (credentialfield). Requires a user’s consent; ideal when the bot acts on a specific account.service-account: uses a service account key stored as a credential (serviceAccountfield). No consent required — ideal for unattended runs. The sheet must be shared with the service account’s email. Optionally,impersonateUseracts on behalf of a Workspace user (domain-wide delegation).
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
spreadsheetId | expression | Sheet ID, from URL docs.google.com/spreadsheets/d/{ID}/edit. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
authType | enum | oauth (default) or service-account. |
credential | credential | OAuth mode: name of the Google OAuth connection on Zoan Cloud. |
serviceAccount | credential | Service account mode: credential holding the full JSON key. |
impersonateUser | expression | Service account mode (optional): email of the Workspace user to impersonate. |
Subflows (lanes)
Section titled “Subflows (lanes)”body optional
Section titled “body optional”Activities to be executed within the session. It closes when finished.
Output
Section titled “Output”Returns a ZoanGoogleSheetsSession. Pass it as session to the other activities.
Example
Section titled “Example”Google Sheets — Open credential = "google-clinica" spreadsheetId = "1AbC...XyZ" └─ body: Google Sheets — Read sheet sheet = "Citas" has-headers = true → output: citasRelated activities
Section titled “Related activities”- Google Sheets — Close — close the session (mode without
body). - Read sheet / Write sheet — operate with the session.