GOOGLE WORKSPACE Set data validation function

The GOOGLE WORKSPACE Set data validation function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Workspace connector function to set data validation rules on a range.

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


Description

The Set data validation function applies data validation rules to a range of cells. Rules can enforce drop-down lists, number ranges, date ranges, text patterns, and custom formulas.


Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Spreadsheet IDYesText-Google Sheets spreadsheet ID
Sheet IDYesText-Numeric sheet ID
RangeYesText-A1 notation range for the validation
RuleYesText-JSON object describing the validation rule (type, values, strict)
Show dropdownNoBooleantrueShow a drop-down selector in the cell (for list rules)

Errors

  • Sheet not found – no sheet exists with the given ID
  • Invalid rule – the validation rule JSON is malformed

Tips

  • For a drop-down list, use rule: {"type":"ONE_OF_LIST","values":["Yes","No","Maybe"]}
  • Set strict to false to show a warning instead of rejecting invalid input

Related functions

  • Format cells – Apply cell formatting
  • Protect range – Protect cells from editing

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.