Help Centre › Functions & Formulas
This article describes the RPA Google Workspace connector function to close an open Google Docs document connection.
For a full list of available functions, please read GOOGLE WORKSPACE functions.
Description
The Close function releases the connection to a previously opened Google Docs document. This frees up resources and should be called when document operations are complete.
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Connector | Yes | Select | - | Select the Google Workspace connector to use |
| Document ID | Yes | Text | - | The document ID of the open connection to close |
Errors
- No open connection – no document connection exists for the given ID
Tips
- Always close documents when finished to avoid holding unnecessary connections
- Place close actions in a Finally block to ensure cleanup even when errors occur
Related functions
- Open document – Open a document connection
- Get text – Get the document text