GOOGLE WORKSPACE Batch update (Docs) function

The GOOGLE WORKSPACE Batch update (Docs) function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Workspace connector function to execute multiple update requests on a Google Docs document.

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


Description

The Batch update function executes multiple update requests on a Google Docs document in a single API call. Supports inserting, deleting, and styling content, as well as creating headers, footers, and named ranges. All requests are applied atomically.


Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Document IDYesText-Google Docs document ID
RequestsYesTextarea-JSON array of request objects (see Google Docs API batchUpdate documentation)
VariableYesText-Variable to store the result

Output variables

VariableTypeDescription
VariableObjectObject containing replies array with results for each request

Errors

  • Document not found – the document ID is invalid or you lack access
  • Invalid request – one or more request objects are malformed

Tips

  • When combining inserts and deletes, process from end-of-document to start to avoid index shifts
  • All requests are applied atomically – if one fails, none are applied

Related functions

  • Insert text – Insert text individually
  • Update text style – Style text individually

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.