Create Word (DOCX) file

Create Word (DOCX) file

Description

You can create a Word (DOCX) file. Choose wether you want to use an existing Word (DOCX) or create a new Word (DOCX) (default).

Input Arguments

Input ArgumentTypeDescriptionRequired?Advanced Option?Default
Section Type - 1Choice FieldThe type of content to insert (e.g., Paragraph, Heading, Table, etc.)✔️Heading1
Section Type - 1TextThe content to insert into the section (can be plain text or dynamic content).✔️-
+ Add new item RepeatingAdd more sections with their own Section Type and Section Tex`.-
Existing File ContentFileA Word (DOCX) file to update. If empty, a new document is created. File only – no string/Base64 allowedNew Word document created

Output

ResponseTypeDescription
File responseFileThe generated or updated Word file.
File response as stringStringThe file as a base64 string. Useful for storing in variables, Dataverse, or passing to other actions.
MIME typeStringMIME type of the Word file, typically application/vnd.openxmlformats-officedocument.wordprocessingml.document.
ExtensionStringFile extension of the generated file, e.g., docx.

Power Automate Examples

Create Word (DOCX) file

We do not use an existing Word (DOCX) and therefore a new one is created. Then, we add sections and decide their types to be Headers.

Each section consists of a Section Type and Section Text. You can add multiple sections by clicking the Add new item button.

Picture

💡

Looking for the response to this example? Scroll up to see the Output tab.

Known Limitations

⚠️
If you experienced other limitations please get in touch with us!