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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to use content con...
Power Apps
Unanswered

How to use content controls and if-then-else statements in word with power automate?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am using Power automate to populate my microsoft word template using a JSON Payload. To create the template I am using content control - plain text, I create tags using plain-text which are then assigned the values by the power automate flow. I wish to add check - boxes and use if else statements to either check the boxes or leave them blank according to the value of that particular data. For example:


Word: (all the placeholders are written here using << >> and the IF statement is written using the field option from Insert -> QuickParts-> Field)
Firm’s Full Legal Name, Include Any DBA: <<LegalName>>

Primary Practice Address: <<PrimaryPracticeLocation>>  
City/State/Zip:  <<CityStateZip>>

Address for Additional Locations: <<Additional Address>>  No Other Locations : {IF <<"FirstApplication">> = "True" "☑ " "◻" \* MERGEFORMAT }

Json Payload:
[

    {

      "id": "0b2c7418-7b69-4689-babf-fb1cdc66dd85",

      "templateName": "HHHApplication.docx",

      "data":

      [

        {

          "id": "c01149ed-56d8-4722-b716-c99bff0d4a30",

          "LegalName": "Alex Mitchel",

          "PrimaryPracticeLocation": "2-B acdb",

          "CityStateZip": "NY, 10038",

          "AdditionalAddress": "N.A. City hall",

          "OtherLocation": "True"
}
]
}
]

Categories:
I have the same question (0)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard