GOOGLE WORKSPACE Create named range function

The GOOGLE WORKSPACE Create named range function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Workspace connector function to create a named range in a Google Docs document.

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


Description

The Create named range function creates a named range over a specified content range in a Google Docs document. Named ranges serve as bookmarks for programmatic access to specific document sections.


Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Document IDYesText-Google Docs document ID
NameYesText-Name for the named range
Start indexYesNumber-Start index of the content range
End indexYesNumber-End index of the content range
VariableYesText-Variable to store the result

Output variables

VariableTypeDescription
VariableObjectObject containing namedRangeId

Errors

  • Document not found – the document ID is invalid or you lack access
  • Invalid range – the start or end index is outside the document bounds

Tips

  • Named ranges persist across edits but their indices may shift
  • Use descriptive names for easy identification

Related functions

  • List named ranges – List all named ranges
  • Delete named range – Delete a named 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.