GOOGLE WORKSPACE Export as (Docs) function

The GOOGLE WORKSPACE Export as (Docs) function in RPA.

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

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Document IDYesText-Google Docs document ID
FormatYesSelectPDFExport format: PDF, DOCX, ODT, RTF, TXT, HTML, EPUB
VariableYesText-Variable to store the file content or download URL

Output variables

VariableTypeDescription
VariableTextBase64-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

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.