Finds literal text in the main Word story and returns the Word character offsets.
Inputs and outputs
document— Word document (text, filesystem.file).search— Find text (text).matchCase— Match case (boolean).fire— Optional start signal (fire).
matches— Matches (number).offsets— Character offsets (list).fire— Continuation after success (fire).
Settings
search(text). Default empty.matchCase(checkbox). Defaulttrue.
A connected value takes precedence over its saved setting. Invalid values stop the workflow.
Enter 1 to 200 characters on one line. Match case defaults to true. The block searches the main document body for literal text and returns ordered, zero-based character offsets from Word. A successful search with no matches returns zero and an empty list. Use a narrower term if the search exceeds 100 matches.
Requirements and errors
Use installed Microsoft Word Desktop and Windows PowerShell 5.1 in a Windows desktop session. Reconnect a local DOCX of up to 32 MiB without a password, external links, macros, active objects or unsupported dynamic fields.
A failure returns no output resource or continuation signal.
