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 Automate / Populate a Microsoft w...
Power Automate
Answered

Populate a Microsoft word template based on Form responses where there are multiple answers for a question

(0) ShareShare
ReportReport
Posted on by 8

Hi, looking for a small bit of help, please.

 

I'm populating a Word document using Power Automate when a response is submitted to a form.

 

Most of the questions are yes/no answers, and one of them will pull through some text. An example expression is: 

 

if(equals(outputs('Get_response_details')?['body/r3be654137aae4fde8510a4bb370f4523'],'Yes'),'We would recommend the preparation of a shareholder’s agreement.','')
 
The problem I'm having is where a questions can have multiple answers e.g. A/B/C where any number of the three can be selected: A, A and B, B and C etc
Aidan_O_0-1690199076466.png

 

I tried putting an expression in for each answer, but nothing is coming through. If I turn multiple answers off, it works, but then I can only get one text answer, when I want it to also be able to do two or three
Aidan_O_1-1690199172548.png

 

How can I pull through the three different bits of text depending on the different amount of answers?

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Aidan_O ,

     

    Please try to use contains instead of using equals, something like:

    if(contains(outputs('Get_response_details')?['body/r3be654137aae4fde8510a4bb370f4523'],'A'),'Answer for A','')

    if(contains(outputs('Get_response_details')?['body/r3be654137aae4fde8510a4bb370f4523'],'B'),'Answer for B','')

    if(contains(outputs('Get_response_details')?['body/r3be654137aae4fde8510a4bb370f4523'],'C'),'Answer for C','')

     

    Best Regards,

    Wearsky

  • Aidan_O Profile Picture
    8 on at

    That works perfectly, thank you.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard