Appends a paragraph with a built-in Word style to a new DOCX.
Inputs and outputs
document— Word document (text (filesystem.file)) Required connector.text— Text (text) Connector or setting.style— Paragraph style (text) Connector or setting.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)).fire— Continuation after successful completion (fire).
Settings
text— Text (text). Default empty.style— Paragraph style (select). Defaultnormal. Optionsnormal,heading1,heading2.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.
Enter a line of 1 to 8,192 characters. Select normal, heading1 or heading2 for the built-in Normal, Heading 1 or Heading 2 style. Word applies the selected style from the document.
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.
