Gmail — Close
Gmail — Close
Section titled “Gmail — Close”Type: gmail-close · Package: Gmail v1.0.4 · Output: —
Closes a Gmail session and frees its resources. It is only needed when you opened the session with Connect without body: in that mode the session stays open until you close it.
How it works
Section titled “How it works”It works on the session created with Gmail — Connect. Pass it in the session parameter.
If you used Connect with body, the session closes automatically when the block ends and you don’t need this activity. Once closed, the session can no longer be used: close it at the end of your work with the mailbox.
Required parameters
Section titled “Required parameters”None.
Optional parameters
Section titled “Optional parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
session | ZoanGmailSession | — | Gmail — Connect session to close. Inside Connect’s body the inherited one is used. |
Output
Section titled “Output”This activity does not return a value.
Common errors
Section titled “Common errors”| Message | Cause and fix |
|---|---|
No Gmail session available. … | You didn’t pass session and the activity is not inside Connect’s body. Pass the session variable. |
Example
Section titled “Example”Gmail — Connect credential = credential("gmail-support") → output: sessionGmail — Send session = session to = "customer@example.com" subject = "Weekly report"Gmail — Close session = sessionRelated activities
Section titled “Related activities”- Gmail — Connect — open the session.
- All Gmail activities