Add HTML to Word File
Description
You can add a HTML to a Word DOCX file.
Input Arguments
Input Argument | Type | Description | Required? | Advanced Option? | Default |
---|---|---|---|---|---|
Existing File Content | Word file | The Word document which shall be used to add the HTML into. Must be a file – Base64 string is not supported. | ❌ | ❌ | A blank word file is used if none was chosen. |
HTML | HTML | The HTML content which shall be added to the Word document. | ❌ | ❌ | - |
Output
Response | Type | Description |
---|---|---|
File response | File | The updated Word file (docx) with the added HTML content. |
File response as string | String | The file content as a string. This can be stored in a variable, saved to Dataverse, or passed to other actions that require the file content in string format. |
MIME type | String | The MIME type of the file, typically application/vnd.openxmlformats-officedocument.wordprocessingml.document. |
Extension | String | The file extension, e.g., docx. |
Power Automate Examples
Add HTML to Word File
We chose not to use an existing Word document. Therefore, a blank Word document is used. In addition, a table in HTML is used as an example. Thereafter, the Word is being saved.
HTML table
<table border = "1">
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
</table>
💡
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!