Help Centre › Functions & Formulas
This article describes the RPA Google Workspace connector function to export a Google Docs document to another format.
For a full list of available functions, please read GOOGLE WORKSPACE functions.
Description
The Export as function exports a Google Docs document to PDF, DOCX, ODT, RTF, TXT, HTML, or EPUB format. The exported file is saved to a specified location or returned as a download URL.
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 |
| Format | Yes | Select | Export format: PDF, DOCX, ODT, RTF, TXT, HTML, EPUB | |
| Variable | Yes | Text | - | Variable to store the file content or download URL |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Text | Base64-encoded file content or download URL |
Errors
- Document not found – the document ID is invalid or you lack access
- Unsupported format – the requested format is not available
Tips
- PDF is the most common format for sharing and archiving
- Use DOCX for compatibility with Microsoft Word
Related functions
- Get text – Get plain text content
- Get content – Get structured content