GOOGLE WORKSPACE Get content function

The GOOGLE WORKSPACE Get content function in RPA.

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

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Document IDYesText-Google Docs document ID
VariableYesText-Variable to store the content

Output variables

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

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.