Help Centre › Functions & 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
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Connector | Yes | Select | - | Select the Google Workspace connector to use |
| Document ID | Yes | Text | - | Google Docs document ID |
| Name | Yes | Text | - | Name for the named range |
| Start index | Yes | Number | - | Start index of the content range |
| End index | Yes | Number | - | End index of the content range |
| Variable | Yes | Text | - | Variable to store the result |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Object | Object 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