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

Anonymous
2024-01-24T14:02:32+00:00

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"
}
]
}
]

Microsoft 365 and Office | Install, redeem, activate | Other | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-01-25T20:57:42+00:00

    Hello Navya,

    Thank you for posting in Microsoft Community.

    We understand that you are trying to use content controls and if-then-else statements in Word with Power Automate. For this issue is already out of my expertise since it already covers power automate, I suggest posting Power Query - Power Platform Community (microsoft.com) forum. This is because there are a lot of advanced users on those forums who can help you with your concerns further.

    We will leave this thread open in case some VMs or other community want to join in.

    Sincerely,

    Kathy A.

    Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments