Replace Text in a Word Document
  • 21 Oct 2022
  • 1 Minute to read
  • Dark
    Light

Replace Text in a Word Document

  • Dark
    Light

Article summary

Step Details

Introduced in Version---
Modified in Version---
LocationData > MS Word

The Replace Text in a Word Document step gets bookmarks or tokens from a Word Document, replaces them with the specified text, and returns an updated Word file.

Note on Word Document Files 
Word Documents created using an online or external document processor (such as Word 365 or Google Docs) other than Microsoft Word are incompatible for use with the Replace Text Workflow steps. Failure to use a Word-generated document will result in unexpected results and failure to apply the specified changes. 



Properties

Configuration

PropertyDescriptionData Type
Replace ModeAllows the user to select whether to look for a Bookmark or Token in the document---
BookmarkSearches for Bookmarks---
TokenSearches for Tokens---
Get Document From InputsAllows the user to specify the Bookmarks/Tokens in a specified file to replace---
Merge Phrase ListAllows the user to specify a list of Document Phrases (Name and Text values)List of Document Phrase
Pick Document FileInput Word Document fileFile


Replace Tokens

PropertyDescriptionData Type
Start of TokenSpecifies the start of a token---
End Of TokenSpecifies the end of a token---
Match CaseMatches the case of the Token---
Replace Token with HTML TextAllows a user to replace the Token with HTML text---


Replace Bookmarks

PropertyDescriptionData Type
Replace Every InstanceAllows the user to replace every instance of a bookmark---


Outputs

PropertyDescriptionData Type
Done

Output Document File
Updated document fileFile Data
Failed

Error Message
Error messageString





Related Information

Forum Posts:
Creating a Word Document From Flow
How To Replace File Name For “Replace Text In Word



Was this article helpful?