Help Centre › Functions & Formulas
This article describes the RPA Google Workspace connector function to get the full structured content of a Google Docs document.
For a full list of available functions, please read GOOGLE WORKSPACE functions.
Description
The Get content function retrieves the full structured content of a Google Docs document, including paragraphs, tables, images, headers, footers, and styling information. The content is returned as a JSON object matching the Google Docs API document structure.
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 |
| Variable | Yes | Text | - | Variable to store the content |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Object | Full document body object with content array of structural elements |
Errors
- Document not found – the document ID is invalid or you lack access
Tips
- Use Get text instead if you only need plain text without structure
- The content array contains elements with startIndex and endIndex for precise editing
Related functions
- Get text – Get plain text only
- Get structure – Get headings and sections