Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Issues populating Dynamically Created Word Document Template saved in Sharepoint

(0) ShareShare
ReportReport
Posted on by 389

Hello,

 

I'm aiming to create a flow that populates a Word template from an online Microsoft Form in 2 separate processes: Employee fills out form and generates Word template file, upon completion, Manager populates the same file.


1. Employee
The first Flow below will collect the details of the first form, generate a timestamp filename, populate word document and create a file in a Sharepoint library and then finally sending an email to the manager when this process is complete.

In that email contains the filename and a link to the seperate Manager Form.

virakones_0-1610469810366.png

 

2. File in Sharepoint

At this point, there is a file in sharepoint that, when I download it, still contains template elements and controls (mainly just plain text control).

virakones_1-1610470210191.png


3. Manager

 

At this stage, the Manager will receive the above email when the employee completes their form. I ask the Manager to copy the filename provided as a response so that I can use it to reference the exact file the employee filled out.

In the flow, when a new Manager form response is completed, it will store the filename provided as a variable that I use to replace the filename in the populate word template action. Before adding the variable name, I use a sample file to pre-fill the fields. when the fields are filled from the dynamic content, I swap out the filename for the variable.

At this point, the flow, I imagine, should be able to grab the correct file and populate the document considering that it is still a template.

 

virakones_3-1610470464001.png

 

Issue

The file is properly retrieved but does not seem to recognize template elements in the document even though I get the correct file, and when downloaded, still contains empty plain text controls for the Manager portions.

 

virakones_2-1610470325785.png

 

virakones_5-1610470851942.png

virakones_4-1610470757732.png

 

What can I do here to resolve this? Is it possible to reference a Word file as a variable?

  • Verified answer
    virakones Profile Picture
    389 on at
    Re: Issues populating Dynamically Created Word Document Template saved in Sharepoint

    This is resolved.

    See @RichFunk365's post here, I was able to dynamically fill in the manager portions of the template using dynamic file schema field. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1