Replace Text
Replaces all occurrences of specific text in a Google Slides presentation.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Presentation Id - The ID of the Google Slides presentation where text will be replaced.
- Text to Replace - The text content that will be searched for and replaced.
- Replacement - The new text that will replace the matching text.
Options
- Search case sensitivity - If enabled, the text search is case-sensitive; otherwise, it's case-insensitive.
- Page Object Ids - An array of page IDs to limit the replacement operation to specific slides. If empty, all slides in the presentation are searched.
How It Works
The Replace Text node finds all occurrences of the specified text and replaces them with new text throughout a Google Slides presentation. When executed, the node:
- Validates the provided inputs (Presentation Id, Text to Replace, Replacement)
- Connects to the specified Google Slides presentation
- Searches for all occurrences of the specified text across the presentation or specified pages
- Replaces each matching text instance with the replacement text
Requirements
- A valid Google Slides presentation ID
- Valid Google Slides API credentials
- Text content to search for and replace
- Proper permissions to modify the presentation
Error Handling
The node will return specific errors in the following cases:
- Empty or invalid Presentation Id
- Empty or invalid Text to Replace
- Empty or invalid Replacement text
- Google Slides API authentication errors
- Insufficient permissions to modify the presentation
- Invalid presentation ID
- No text found matching the search criteria
- Google Slides service errors
Usage Notes
- The Presentation Id can be found in the URL of the Google Slides presentation
- The Text to Replace is searched throughout the entire presentation content
- When Page Object Ids is specified, only those slides are searched for matching text
- The Search case sensitivity option allows for precise matching requirements
- This node is particularly useful for:
- Updating template presentations with specific content
- Replacing placeholders with actual values
- Making bulk text updates across multiple slides
- If no matching text is found, the node returns an error
- The replacement preserves the original text formatting
- All instances of the matching text are replaced in a single operation