Skip to content

Google Drive — Close

Type: googledrive-close  ·  Package: Google Drive v1.0.5  ·  Output: —

Closes a Google Drive session and releases its resources. It is only needed when you opened the session with Connect without body.

Releases the session given in session (or the inherited one, inside a body). Afterwards that session can no longer be used. It does not affect the files: every operation was already applied in Drive.

If you used Connect with body, the session closes automatically at the end of the block and you do not need this activity.

None.

ParameterTypeDefaultDescription
sessionZoanGoogleDriveSession—Session from Google Drive — Connect. Inside Connect’s body it is inherited and you can leave it empty.

This activity does not return a value.

MessageCause and fix
No Google Drive session available. Provide 'session' from a googledrive-connect activity, or place this activity inside the Connect activity's body …The activity is outside Connect’s body and received no session. Move it inside the body or pass the saved session.
Google Drive — Connect credential = credential("drive-operations") → output: drive
Google Drive — Upload session = drive path = "C:\reports\today.pdf"
Google Drive — Close session = drive