Add HTML to Word File

Add HTML to Word File

Description

You can add a HTML to a Word DOCX file.

Input Arguments

Input ArgumentTypeDescriptionRequired?Advanced Option?Default
Existing File Content Word fileThe 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 HTMLThe HTML content which shall be added to the Word document.-

Output

ResponseTypeDescription
File responseFileThe updated Word file (docx) with the added HTML content.
File response as stringStringThe 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 typeStringThe MIME type of the file, typically application/vnd.openxmlformats-officedocument.wordprocessingml.document.
ExtensionStringThe 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>

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!