Google Drive — Close
Google Drive — Close
Section titled “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.
How it works
Section titled “How it works”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.
Required parameters
Section titled “Required parameters”None.
Optional parameters
Section titled “Optional parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
session | ZoanGoogleDriveSession | — | Session from Google Drive — Connect. Inside Connect’s body it is inherited and you can leave it empty. |
Output
Section titled “Output”This activity does not return a value.
Common errors
Section titled “Common errors”| Message | Cause 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. |
Example
Section titled “Example”Google Drive — Connect credential = credential("drive-operations") → output: driveGoogle Drive — Upload session = drive path = "C:\reports\today.pdf"Google Drive — Close session = driveRelated activities
Section titled “Related activities”- Google Drive — Connect — open the session.
- All Google Drive activities