GOOGLE WORKSPACE Batch write ranges function

The GOOGLE WORKSPACE Batch write ranges function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Workspace connector function to write to multiple ranges in a single request.

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


Description

The Batch write ranges function writes values to multiple ranges in a Google Sheets spreadsheet in a single API call. This is more efficient than making individual write requests.


Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Spreadsheet IDYesText-Google Sheets spreadsheet ID
DataYesText-JSON array of objects with range and values properties, e.g. [{"range":"A1:B2","values":[["a","b"]]}]
Value input optionNoSelectUSER_ENTEREDHow values are interpreted: RAW or USER_ENTERED
VariableYesText-Variable to store the result

Output variables

VariableTypeDescription
VariableObjectObject containing totalUpdatedRows, totalUpdatedColumns, and totalUpdatedCells

Errors

  • Spreadsheet not found – the spreadsheet ID is invalid or you lack access
  • Invalid range – one or more ranges are malformed

Tips

  • Use batch writes to reduce API calls and improve performance
  • All ranges are written atomically in a single request

Related functions

  • Write sheet range – Write to a single range
  • Batch read ranges – Read from multiple ranges at once

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.