Documents & Forms
Microsoft 365 & SharePoint Tools
Classic SharePoint Tools

Generate Word documents from template


Automatically generate Word documents from .docx templates. You can use merge fields to insert your own data into a document.


This is an example of a document with merge fields:


Then you can use Microsoft Flow, Logic Apps or REST API to apply your data to a template.

Microsoft Flow

Set up Microsoft Flow connector in a few minutes. You will have a few new actions in your flows that can be used to work with documents.

We prepared an article that demonstrates how to generate docx from a template.


Follow a few simple steps to get started and receive API key. You can find detailed information about all available operations in API specification. Then you can proceed to the generation of docx documents with the help of any language including C#, Python, JavaScript, Ruby.