Help Centre › Functions & Formulas
This article describes the RPA Google Drive functionality to export a file.
For a full list of available functions, please read Google Drive functions.
Description
The Google Drive Export file function exports a Google Workspace file (Docs, Sheets, Slides) to a different format such as PDF, DOCX, XLSX, or CSV.
Setting it up
To use the Google Drive Export file function, follow these instructions:
{{popups:rpas/add:action=google-workspace-drive-export}}
Once on a process map:
- Navigate to the process where you would like to add the Google Drive Export file function
- Click on the green button's drop-down (right side of the green button labelled "Process")
- On the menu that appears, click on the "+ Activity" item
- From here you can select the Google Drive Export file option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File ID | Yes | Text | - | The Google Workspace file ID to export |
| Local file path | Yes | Text | - | Local file path to save the exported file |
| Export format | Yes | Select | - | Target format: PDF, Word (DOCX), Excel (XLSX), PowerPoint (PPTX), CSV, Plain text, HTML, RTF, PNG, JPEG, or EPUB |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| File not found | The specified file ID does not exist |
| Not a Workspace file | The file is not a Google Docs, Sheets, or Slides file |
| Unsupported format | The selected export format is not supported for this file type |
Tips
- This function only works with Google Workspace files (Docs, Sheets, Slides)
- For regular files (uploaded PDFs, images, etc.), use Download file instead
- Google Docs can be exported to PDF, DOCX, HTML, RTF, Plain text, or EPUB
- Google Sheets can be exported to XLSX, CSV, PDF, or HTML
- Google Slides can be exported to PPTX, PDF, PNG, or JPEG