Fill Properties (Word)
Overview
The Fill Properties (Word) node replaces placeholder tokens embedded in a Word (.docx) document with values from the current iteration's workflow properties. The document's formatting, styles, tables, and structure are preserved; only the placeholder text is replaced.
Purpose
Use this node to generate personalized or data-driven Word documents from a template.
Configuration
This node has no configuration fields. Simply connect a Word file as input. At runtime, the node:
- Opens the incoming
.docxfile. - Scans all paragraphs, tables, headers, and footers for placeholder tokens in the format
${propertyName}. - Replaces each token with the current value of the corresponding workflow property.
- Emits the updated Word document as output.
Inputs
| Input | Data Type | Input Type | Description |
|---|---|---|---|
| inputNodeFile | NodeFile | Single | A NodeFile containing a .docx Word document. |
Outputs
| Output | Data Type | Collection | Description |
|---|---|---|---|
| outputNodeFile | NodeFile | False | A NodeFile containing the updated .docx document with placeholders replaced. |
Processing Logic
The node prepares the Word document for variable replacement, builds a variable map from the current iteration and node properties, replaces matching placeholders in the main document and headers/footers, and saves the updated file with the original computed filename.
Placeholder Format
Placeholders follow the same syntax as workflow property expressions:
${PROPERTY_NAME}
For example, a paragraph containing Invoice Date: ${INVOICE_DATE} would become Invoice Date: 2024-06-01 at runtime.
Examples
- Generating personalized letters or contracts from a Word template
- Filling in report headers, dates, and reference numbers
- Creating individual documents per customer or transaction from a single template
Notes / Limitations
- The input file must be a
.docxdocument. - Only placeholders that match available workflow properties are replaced.
- The node does not provide configuration fields beyond the template file input.
Related Nodes
| Node | Use When |
|---|---|
| Fill Properties (Excel) | Template is an .xlsx Excel workbook |
| Fill Properties (PowerPoint) | Template is a .pptx presentation |