Skip to main content
Version: Current

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​

info

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​

info

Controls how this activity behaves when multiple incoming execution paths converge.

Learn more → Execution Control


On Error​

info

Defines how the workflow behaves if this activity encounters a runtime error.

Learn more → On Error


Design-Time Configuration​

Display Text​

The label displayed for this activity on the workflow canvas.

Word File​

The Word document to modify.

See Word Document Selection.

Password​

Optional password used to open a password-protected document.

Replacements​

The collection of bookmark replacements to perform.

Each row contains:

FieldDescription
BookmarkThe bookmark name to replace.
TextThe 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.