I recently worked with a client who needed a simple way to combine multiple Word documents into one. Their team created separate documents for different parts of a report, and merging them manually was taking too much time. I researched and found a solution using Power Automate premium connector Word – Populate, which we can merge with Word documents.
In this Power Automate tutorial, I will show you how to merge Word documents in Power Automate.
Merge Word Documents in Power Automate
I will use a third-party action to create this flow: Word – Populate from Encodian. To use Encodian actions, you need an API key. To get the API key, go to this link and fill out the form to activate the free trial. It will generate an API key for you.
For this example, I have two Word documents in SharePoint Folder:

To store merge documents, I created another document library. Create a Word file (template file) inside the library and add the syntax below, which will help merge the files.
<<foreach [f in files]>><<doc[f.file]>><</foreach>> 
Now follow the below steps:
1. In Power Automate, create an Instant Cloud Flow and name it. Use the Manually Trigger a Flow trigger.

2. Now, we need to retrieve the two Word document files. Add a Get file (properties only) action and provide the following parameters:
- Site Address: Select the SharePoint site address.
- Library Name: Select the library name from the drop-down menu.
- Limit Entries To Folder: Select the folder.

3. Now add the Initialize variable action, then provide the below parameters:
- Name: Provide the name as varContent.
- Type: select the type as String.
- Value: provide the value as below syntax:
{
"files": [
4. Add Get file content action, then provide the below parameters:
- Site Address: Select the site address.
- File Identifier: Select the Identifier from the dynamic content of the Get file (properties only).
It will automatically add Apply to each action.

5. Inside the for each add Append to string variable action, then provide the below parameters:
- Name: Select the Name as varContent
- Value: Provide the value as below code:
{
"file": "@{body('Get_file_content')?['body']}"
},
6. Outside of for each action, add Append to string variable action, then provide the below parameters:
- Name: Select the Name as varContent
- Value: Provide the value as below code:
]
}
7. Add Get file content action, then provide the below parameters:
- Site Address: Select the site address.
- File Identifier: Select the template file by clicking on the Folder icon.

8. Now we will merge the content, so add Word – Populate, then provide the below parameters:
- File content: Select the File content dynamic content from the Get file content action.
- Document Data: Select the variable from the dynamic content.

9. Now add the Create file action and provide the below parameters:

Now save and run the flow. Once your flow runs successfully, go to the library and open the final Word file. You will see that the content has been merged.

Conclusion
In this tutorial, I showed you how to merge multiple Word documents into one using Power Automate. We used the Encodian “Word – Populate” action to pull the content from two Word files stored in SharePoint and combine them into a single document.
- Convert HTML to PDF in Power Automate
- Read a Text and Count its Occurrence From a Docx File in Power Automate
- Convert CSV to Excel using Power Automate
- Read a Text and Count its Occurrence from a docx file in Power automate
- Add Hyperlinks to SharePoint List Items Using Power Automate

After working for more than 18 years in Microsoft technologies like SharePoint, Microsoft 365, and Power Platform (Power Apps, Power Automate, and Power BI), I thought will share my SharePoint expertise knowledge with the world. Our audiences are from the United States, Canada, the United Kingdom, Australia, New Zealand, etc. For my expertise knowledge and SharePoint tutorials, Microsoft has been awarded a Microsoft SharePoint MVP (12 times). I have also worked in companies like HP, TCS, KPIT, etc.