Actions40
- Create Bullets Request Actions
- Create Document Request Actions
- Create Headers & Footers Request Actions
- Create Images Request Actions
- Create Named Ranges Request Actions
- Create Tables Request Actions
- Create Tabs Request Actions
- Create Text Request Actions
- Send Request Actions
Create Named Ranges Request → Replace Named Range Content
AI-generatedSummary
Replaces the entire text content of a named range within a Google Doc.
Inputs
- text (required) — The text to replace the range content with.
- namedRangeReference (required) — A reference to the named range. Use ID mode to provide the range ID (e.g., 'kix.xxxxxxxx') or Name mode to provide the range name (e.g., 'My Range').
- additionalFields.tabIds — Optional: A single tab ID or an array of tab IDs specifying which document tabs the range belongs to.
Output shape
a single record
The operation executes a batch request. The returned item reflects the state of the document after the update.
Examples
Example 1: Update a specific named range
Set 'Named Range' to the range's ID (e.g., 'kix.abc123') and enter the new text in the 'Text' field.
Example 2: Update a named range across multiple tabs
Select 'Name' mode for 'Named Range', provide the range name, and specify tab IDs in 'Additional Fields' (e.g., 'tab1, tab2').