web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Populating word templa...
Power Automate
Unanswered

Populating word template - repeat content controls

(0) ShareShare
ReportReport
Posted on by

I am generating a contract in Word that is automatically filled out based on responses from a Form using Flow.

 

In my Word template, there are several times that 'EmployeeName' property control reoccurs. 

 

I have copied and pasted this throughout my document, but under Flow it shows as a 3 different 'EmployeeName' and this is a problem.

 

Also, there are certain parts of the document that we want to use an 'If' statement for. 

For example: If continuous employment date is filled in, we want to say "Your period of continuous employment started on X", instead of "No previous employment counts". 

Is this done through an expression?

Categories:
I have the same question (0)
  • roryl Profile Picture
    on at

     

    Hi robcarrs,

     

    Thank you for your post. I would review the dynamic content value for the “EmployeeName” property in the run history to determine where the varying results might be coming from. You could try this in a different action (such as a compose step) to see if the problem is isolated to the Word template, or other actions as well.

     

    In terms of using expressions in conditions to evaluate the data, I would like to share the following resource which provides guidance on using expressions in the context of conditions: https://docs.microsoft.com/en-us/power-automate/use-expressions-in-conditions.

     

    Thank you,

    Rory

  • Community Power Platform Member Profile Picture
    on at

    Hi @RoryL 

     

    The expression stuff is excellent, thank you for that!

     

    I believe the issue may be coming from the Word template itself. I followed many guides that showed me how to add a content control, this should be changing throughout the document whenever one of them gets modified, but it does not.

     

    So I added an 'abstract' content control, went into the dev tab and to properties, changed the name to 'EmployeeName' and then copied the whole thing across to another section of Word document. They both have the content control highlight showing they copied properly, but changing one does not change the other. 

  • roryl Profile Picture
    on at

     

    Hi robcarrs,

     

    In effort to isolate the Word template from the equation, could you try to use the dynamic value in another place such as a compose step or an email message? This would help determine whether or not that template might be the cause.

     

    Thanks,

    Rory

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard