GOOGLE WORKSPACE Protect range function

The GOOGLE WORKSPACE Protect range function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Workspace connector function to protect a range from editing.

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


Description

The Protect range function adds protection to a specified range, preventing other users from editing the cells. Only the owner and specified editors can modify protected cells.


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 to protect
DescriptionNoText-Description for the protected range
Warning onlyNoBooleanfalseIf true, show a warning instead of blocking edits
VariableYesText-Variable to store the result

Output variables

VariableTypeDescription
VariableObjectObject containing protectedRangeId

Errors

  • Sheet not found – no sheet exists with the given ID
  • Insufficient permissions – you do not have permission to protect ranges

Tips

  • Use Warning only mode to alert users without blocking edits
  • Store the protectedRangeId to unprotect later

Related functions

  • Unprotect range – Remove protection from a range

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.