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

Community site session details

Session Id : XPYzG2d4BOYUdz/2mOvuk1
Power Automate - General Discussion
Answered

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

Like (0) ShareShare
ReportReport
Posted on 24 Jul 2023 11:52:36 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?

  • Aidan_O Profile Picture
    8 on 25 Jul 2023 at 08:44:21
    Re: Populate a Microsoft word template based on Form responses where there are multiple answers for a question

    That works perfectly, thank you.

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 25 Jul 2023 at 02:05:36
    Re: Populate a Microsoft word template based on Form responses where there are multiple answers for a question

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete