Help Centre › Functions & 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
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Connector | Yes | Select | - | Select the Google Workspace connector to use |
| Document ID | Yes | Text | - | Google Docs document ID |
| Requests | Yes | Textarea | - | JSON array of request objects (see Google Docs API batchUpdate documentation) |
| Variable | Yes | Text | - | Variable to store the result |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Object | Object 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