Skip to main content

Disconnect

Closes an active Microsoft Graph API connection and releases associated resources. Always use this node when you're finished with Microsoft Graph operations to properly clean up the session.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is set to true, no error is caught when the project is executed even if a Catch node is used.

Input

  • Client Id - The client ID returned by the Connect node.

Example

Basic Disconnection:

Connect → [Excel Operations] → Disconnect

Multiple Operations Pattern:

Connect
├─→ Get Workbook → Get Range → Process Data
├─→ Set Cell Value
└─→ Create Worksheet
All paths converge → Disconnect

Tips

  • Always call Disconnect when finished to free up resources
  • Use Disconnect even if errors occur (place it after error handling)
  • If a flow ends without calling Disconnect, the connection is automatically cleaned up, but explicit disconnection is best practice
  • You cannot reuse a client ID after disconnecting - create a new connection with Connect if needed

Common Errors

ErrInvalidArg - "Client ID cannot be empty"

  • Solution: Ensure you're passing the client_id from the Connect node

ErrNotFound - "Client ID not found"

  • Solution: The connection may have already been closed or never established. Verify the client ID is correct and the Connect node executed successfully