Fills named placeholders and Word merge fields in a new DOCX while preserving document layout.
Inputs and outputs
document— Word document (text (filesystem.file)) Required connector.values— Values (record) Required connector.destinationFolder— Destination folder (text (filesystem.folder)) Required connector.name— Output filename (text) Connector or setting.fire— Optional start signal (fire).
file— File (text (filesystem.file)).replacements— Replacement count (number).fire— Continuation after successful completion (fire).
Settings
name— Output filename (text). Default empty.
A connected input takes precedence over the saved setting, including empty text, zero and false. An invalid connected value stops the workflow.
Use exact case-sensitive names in the connected Values record. In Word, put names inside double braces such as {{EmployeeName}}, or insert Word MERGEFIELD fields using those names. The block updates the body, header and footer stories, notes and linked text frames. Each name starts with a letter and uses up to 40 ASCII letters, digits and underscores. Supply 1 to 100 names and single-line values up to 1,024 characters. Values may be empty. Use at most 4,000 placeholders and fields per document. The block stops if a key or placeholder is missing, unused, malformed, or ambiguous.
Requirements and common errors
Use an active Windows desktop, installed Microsoft Word Desktop and Windows PowerShell 5.1. Reconnect an existing local DOCX under 32 MiB with no password, external links, macros, active objects or unsupported dynamic fields. Open Word once to clear activation or first-run prompts if it fails to start.
Choose one filename ending in .docx in a writable local folder on an NTFS or equivalent volume. Choose a fresh name if the destination already exists. Editing requires an unrestricted copy with resolved tracked changes.
Failure stops this block and returns no file resource or continuation signal.
