Replace Bookmarks
Description
The Replace Bookmarks activity replaces the content of one or more bookmarks within a Microsoft Word document.
The activity updates the specified Word File in place. The same file reference can be used by subsequent Word activities.
Common Capabilities
Process Data Support
This activity supports dynamic configuration using variables from the Process Data drawer.
You can bind values from Model Data, Form Data, System Data, Enterprise Variables, and Activity Outputs.
Learn more → Using Process Data
Execution Control
Controls how this activity behaves when multiple incoming execution paths converge.
Learn more → Execution Control
On Error
Defines how the workflow behaves if this activity encounters a runtime error.
Design-Time Configuration
Display Text
The label displayed for this activity on the workflow canvas.
Word File
The Word document to modify.
Password
Optional password used to open a password-protected document.
Replacements
The collection of bookmark replacements to perform.
Each row contains:
| Field | Description |
|---|---|
| Bookmark | The bookmark name to replace. |
| Text | The replacement text to insert into the bookmark range. |
Both values can be provided as fixed values or dynamic expressions.
Remove Bookmarks After Replacement
Determines whether bookmarks are removed after their content is replaced.
- True – Replaces the bookmark content and removes the bookmark.
- False – Replaces the bookmark content while preserving the bookmark.
Default: False
Outputs
This activity does not produce any outputs.
The updated document is written back to the specified Word File.