Skip to main content

Find and Replace in Word Document Action

Find and Replace in Word Document Action searches and replaces one or all of the occurrences of a text with another text within a Word document. It supports replacing the first occurrence or all occurrences, and can optionally clear formatting of the found text before replacing.

Appearance

In Talos, Find and Replace in Word Document Action appears as a standard rectangular node with a magnifying glass and an arrow pointing right icon.

Find and Replace Icon

Properties

As all Actions, Find and Replace in Word Document Action has a few unique properties that are essential for its functionality.

Common properties

Common properties inherited from Action.

Display NameString
This is the display name of the action.

By customizing this property, you can differentiate between same type of actions.

Action IDString
Indicates the unique ID of this action.

This property is Read only and it is not customizable

DisabledBoolean
If set to true, this action is considered disabled and will not be executed.
Word Document VariableString
The variable containing the Word document instance.
Text to findString with Expressions
The text to search for in the document.

See more about Talos Scripting language & Expressions

tip

This property supports expressions. You can use variable references and string expressions to dynamically resolve the search text at runtime.

Examples

Assuming a declared String variable with name placeholder.

Hello World
${placeholder}
Dear ${placeholder},
[DATE]
Replace withString with Expressions
The text to replace the found text with.

See more about Talos Scripting language & Expressions

tip

This property supports expressions. You can use variable references and string expressions to dynamically resolve the replacement text at runtime.

Examples

Assuming a declared String variable with name newValue and a String variable today.

Goodbye World
${newValue}
Dear ${newValue}, as of ${today}
Replace allBoolean
Whether to replace all occurrences or just the first one.
Clear formattingBoolean
Whether to clear formatting of the found text before replacing.