Skip to content

Google Sheets — Close

Type: googlesheets-close  ·  Package: Google Sheets Activities v1.0.5  ·  Output: —

Closes a Google Sheets session opened with Google Sheets — Open and releases its resources. Needed when you open the session without body.

Releases the session given in session (or the inherited one, inside a body). Afterwards that session can no longer be used: any activity that receives it fails. It does not change the spreadsheet: every write was already saved in Google when it ran.

None.

ParameterTypeDefaultDescription
sessionZoanGoogleSheetsSession—Session returned by Google Sheets — Open. Inside a body the inherited one is used.

This activity does not return a value.

MessageCause and fix
'session' is required and must be a Google Sheets session.No session was given (or it is not a Google Sheets session) and the activity is not inside an Open body.
Google Sheets — Open credential = credential("google-operations") spreadsheetId = id → output: book
Google Sheets — Read sheet session = book sheet = "Data" → output: data
Google Sheets — Close session = book