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 / How do I populate a wo...
Power Automate
Unanswered

How do I populate a word document that has conditional to show certain fields?

(0) ShareShare
ReportReport
Posted on by 822 Super User 2025 Season 2
I already know how to populate a word document template by putting plain text content control and settings its properties. 

My goal is to show certain fields in the document depending on the variable

for example

Is continue? {{continue answer}} <--- these are plain text content control that will be populated 
{{\if "continue answer" = true}} 

content 1 : {{content 1}}  <--- these are plain text content control that will be populated 
content 2: {{content 2}} 

{{\endif "continue answer"}} 

if continue answer is false the fields wouldn't show on the word document. How am I able to achieve this?
Categories:
I have the same question (1)
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    The Populate Word Template is limited to populating the fields you have added to the template. It cannot add logic to the Word document.
  • KevinGador Profile Picture
    822 Super User 2025 Season 2 on at
    David_MA     that is definitely true however what can I do to my word template? Maybe there's something I can do in there

    I've stumbled upon mail merging or field contents which I do not know how to utilize. 

     
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    Hello @KevinGador, this forum is for providing solutions using Power Automate. There very well may be some way to do what you want within Word itself, but I don't know how. I would suggest that you post your question in the dedicated Microsoft Word forum at Word | Microsoft Community Hub. You will be more likely to get an accurate answer there if the solution offered by @AlexEncodian​​​​​​​ does not meet your needs.

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard