Plumsail Documents has an HTML formatter for Word templates. When you need to pass an HTML or rich text to your document templates just add the token inside your DOCX template and pass the HTML data. The token not only accepts the data but also keeps all the formatting from the source HTML.
{{value}:html}
Let's review an example of the case in this article.
Let's say we have a SharePoint list item that contains rich text. The point is to migrate all the rich text data to a Word template and also keep all the formatting.
We add a special placeholder that will process the rich text HTML data and apply it to the Word template along with all formatting. This is how it looks in the DOCX template:
Power Automate flow
The flow itself is pretty simple. This is how it looks:
Let's review each step of the flow.
For a selected item trigger
First, we need to find a SharePoint trigger called "For a selected item". You can click on "Instant Cloud Flow" and then "Skip". Select "SharePoint", and you will see a list of different triggers. We pick "For a selected item" as this trigger will link the flow to the selected list in SharePoint. After that, we connect to our "Documentation" site and choose the list "Company Announcements":
Get item
Next, we get an item with the rich text data using the SharePoint action "Get Item":
Get DOCX template
Then we download a DOCX template using default SharePoint action "Get file content". Let's rename this step to "Get DOCX template" so we can easily find it later:
Create DOCX from template
After that, we add a Plumsail action, "Create DOCX document from template". In this action, we utilize dynamic content from the previous SharePoint actions. In the "Template file" field, we insert our DOCX template we just got in the previous action. The following field, "Template Data", is an object applied to the DOCX template. In this case, we apply the column "Announcement" containing rich text from the SharePoint list. The "Document output type" field allows you to choose between PDF and DOCX format, we'll keep the file in the DOCX format:
Create file
Finally, we create a new DOCX file containing the rich text data in a SharePoint folder using the SharePoint action "Create file". In the "File Name" field, we can choose "Title" column. This is possible because we used "Get item" action in combination with the SharePoint trigger "For a selected item". Specify the file extension; in our case, we type ".docx" since we kept the Word format, but if you decide to convert to PDF, type ".pdf". In the "File Content" field, select the result file from the Plumsail "Create DOCX document from template" action.
Before clicking "Save", let’s give the flow a meaningful name. For example, "Create Announcement Document". Now, click "Save".
Run the flow in SharePoint
To run this flow we need to go back to our SharePoint list, select an entry, click on "Automate", choose "Create Announcement Document" and run the flow:
Now we can check our result Word file. As you can see the rich text migrated to the Word template:
Get started
Hopefully, this simple example helps to start using the HTML formatter with DOCX templates.
SharePoint Add-In retirement in Microsoft 365. Does it affect Plumsail tools?
Microsoft has announced the retirement of the SharePoint Add-In model by April 2026. This news only affects two Plumsail products: Forms for Classic UI and Lookup for Classic UI.
Margarita Nikitina
Customer Support Engineer
Documents
Apr 15
How to create PDF documents from Smartsheet new rows in Power Automate
Learn how to create PDF documents from Smartsheet records using Power Automate and Plumsail Documents when a new row is added.
Sergey Kaigarodov
Internet Marketer
Forms
Documents
Apr 04
Evaluation forms and automated assessment reports for occupational therapy
Functional capacity assessment and other crucial therapy procedures automated by Laneway OT, occupational therapists from South Australia, to eliminate human error, reduce time and paper waste.
Erina Tan
Director, and Occupational Therapist at Laneway OT