7
To configure Find and Replace
1. Select the Update Word Document activity, and in the Properties Pane, select
New under Modifications.
2. In the New Modification dialog box, ensure Find and Replace is selected from
the Type drop-down menu.
3. Type the characters or words that you want Workflow to find in the document
next to Find what. Then type the characters or words that Workflow will
replace the found values with next to Replace with. Use the token buttons to
find or replace words found in other parts of your workflow.
4. If you select the Match case option, the activity will only find results with the
same capitalization pattern as the value you type next to Find what. Clear this
option to find matches regardless of capitalization.
5. If you select the Match whole word option, the activity will only find whole
words, not partial words. For example, if you select this option and configure
the activity to find the word "book," it will find all instances of the word book
but not "bookmark," "bookkeeping," or "booking."
6. If you select the Use regular expressions option, you can use regular
expressions to extract specific information from a token you've added to your
"Find" value. For example, if you put an address token in the Find what field,
you can use regular expressions to only find the zip code from the address.
Learn more about regular expressions
.
While the Find and Replace option offers basic updating functionality, if you have a
document that is going to be updated by a database as well as a workflow, or if you
have more complicated updating needs, then select the Simple Field Merge option.
To configure a simple field merge
1. Select the Update Word Document activity, and in the Properties Pane, select
New under Modifications.
2. In the New Modification dialog box, ensure Simple Field Merge is selected
from the Type drop-down menu.
3. While you can manually input the names of the merge field columns from
your Word table, it's more efficient to click the Import field names from
document link below the table. Clicking this list will automatically populate
the table with all the merge fields Workflow can interact with.
a. If Workflow doesn't find any merge fields, then it will prompt you to
import other types of fields from the document. If you click Yes at this
prompt, any items in the document that are wrapped in double curly
brackets {{ }} will be returned.