GOOGLE WORKSPACE Open document function

The GOOGLE WORKSPACE Open document function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Workspace connector function to open an existing Google Docs document.

For a full list of available functions, please read GOOGLE WORKSPACE functions.


Description

The Open document function opens a connection to an existing Google Docs document by its ID or URL. This establishes a session for subsequent read and write operations.


Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Document IDYesText-Google Docs document ID or full URL
VariableYesText-Variable to store the document metadata

Output variables

VariableTypeDescription
VariableObjectObject containing documentId, title, and revisionId

Errors

  • Document not found – the document ID is invalid or you lack access
  • Insufficient permissions – the app lacks documents scope

Tips

  • The document ID is the long string in the URL between /d/ and /edit
  • You can also paste the full Google Docs URL and the ID will be extracted automatically
  • Use the Close function when finished to release the connection

Related functions

  • Close – Close the document connection
  • Get text – Get the document text
  • Get content – Get the full 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.