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 / Multiple choice responses
Power Automate
Unanswered

Multiple choice responses

(0) ShareShare
ReportReport
Posted on by 28
Flow switch case from form with multiple choices

Hi everyone,

 

I've a Form with a question that can have multiple responses like this:

Question 1

Option 1 - Drilling

Option 2 - Mechanical

Option 3 - Module

 

Need Help in writing a flow. 

I had created a flow if a user selects any of the above options, then an email will be sent to respective email using "switch" function.

But got stuck in creating a flow if the user selects option1 and option 2 or

option 2 and option 3 at a time.

 

Thanks in advance.

 

form responses scrnshot.png
Categories:
I have the same question (0)
  • David_MA Profile Picture
    13,956 Super User 2026 Season 1 on at

    Create a variable to store the choices selected. Then use an Apply to each action to append the choices to a string variable. If your options are just the three you list, then you would have these possibilities (I think):

    1. Drilling
    2. Mechanical
    3. Module
    4. Drilling and Mechanical
    5. Drilling and Module
    6. Mechanical and Module
    7. Drilling, Mechanical, and Module

    Then add these options to your switch and adjust the choices for however you decide to join them when appending to the variable. I believe a switch can handle up to 25 options.

  • gunti Profile Picture
    28 on at

    Hi, thanks for your reply. I tried what you suggested but I got error message. Just sharing the screenshot. please correct me. Thanks

    string error-2.png
    apply to each failed.png
  • David_MA Profile Picture
    13,956 Super User 2026 Season 1 on at

    The initialized variable should not be set to anything. For your choice field there are two values possible. Based your screen shot, the choice field is named "Scope of Work," which is an array. Put that in the output field of the Apply to each action. There should also be a "Scope of Work Value" in the dynamic content. This holds the individual choices. Put that in the value for the Append to string variable action.

  • gunti Profile Picture
    28 on at

    I was not able to see "Scope of Work Value" in the dynamic content. just sharing the screenshots. Thanks

    new2.png
    new 3.png
    new1.png
  • David_MA Profile Picture
    13,956 Super User 2026 Season 1 on at

    Looking at your images closer, your values are coming from MS Forms? If so, that changes what needs to be done. I really don't remember how I figured this out, but I needed this for one solution, and it is working fine.

     

    1. Initialize a string variable, which I think you already have. In my flow, I give it a default value of n/a (not applicable).
    2. Add a condition to check if the question from your form response is not empty.
    3. If it is not empty (no side of condition), you can use this expression to set the variable.
    replace(replace(replace(replace(outputs('Get_response_details')?['body/r9993589908474942962bc282042a8c1a'],'"',''),'[',''),']',''),',',', ')

     

    This is how the condition is configured and uses the following expression on the left:

    David_MA_0-1715797713654.png

    empty(outputs('Get_response_details')?['body/r9993589908474942962bc282042a8c1a'])

     

    In both expressions, replace outputs('Get_response_details')?['body/r9993589908474942962bc282042a8c1a'] with your dynamic value for the question.

     

    This will return them comma separated. You can see if your switch will accept values with commas. Otherwise, just replace ', ' at the end of the first expression with whatever you want to separate the values with. For example, ' and '.

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard