Help Centre › Functions & Formulas
This article describes the RPA Google Workspace connector function to open an existing Google Docs document.
For a full list of available functions, please read GOOGLE WORKSPACE functions.
Description
The Open document function opens a connection to an existing Google Docs document by its ID or URL. This establishes a session for subsequent read and write operations.
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Connector | Yes | Select | - | Select the Google Workspace connector to use |
| Document ID | Yes | Text | - | Google Docs document ID or full URL |
| Variable | Yes | Text | - | Variable to store the document metadata |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Object | Object containing documentId, title, and revisionId |
Errors
- Document not found – the document ID is invalid or you lack access
- Insufficient permissions – the app lacks documents scope
Tips
- The document ID is the long string in the URL between /d/ and /edit
- You can also paste the full Google Docs URL and the ID will be extracted automatically
- Use the Close function when finished to release the connection
Related functions
- Close – Close the document connection
- Get text – Get the document text
- Get content – Get the full structured content