Google Drive Export file function

The Google Drive Export file function in RPA.

Help CentreFunctions & 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:

  1. Navigate to the process where you would like to add the Google Drive Export file function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the Google Drive Export file option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File IDYesText-The Google Workspace file ID to export
Local file pathYesText-Local file path to save the exported file
Export formatYesSelect-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

ErrorDescription
File not foundThe specified file ID does not exist
Not a Workspace fileThe file is not a Google Docs, Sheets, or Slides file
Unsupported formatThe 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

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.