Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

From a MS Form Multi-select, in an email, embed only selected options which match a previous condition

(0) ShareShare
ReportReport
Posted on by 12

Hello and very new to all this Power Automate stuff so be kind

 

I have an incident reporting form where users can select multiple options via checkboxes, and each option has a "key" (like [OSH]) at the end to identify how to route email notifications, which is achieved using a conditional control looking for that key.

 

In the body of the email, I only want to include the selected options that match they key.

 

For example; if the person completing the form selects multiple options with various keys of OSH, Spill, Security and Insurance....the control identifies that the OSH group needs to be emailed, and would see all the general details from the response like date, time, location....but I only want the selected options that match the control to be included in the email body.

 

The below returns all boxes checked, not just the one matching the condition.

Capture.PNG

  • Verified answer
    NotMyRealName Profile Picture
    12 on at
    Re: From a MS Form Multi-select, in an email, embed only selected options which match a previous condition

    Thanks Rimmon!
    That got me 95% there, only thing I had to do was add another Compose to get the body which I could then add to the email body. From here, it looks as though all I have to do is remove the ["xyz"] from around the responses when embedded which I'm pretty sure I can figure out.

    Much appreciated

    image.png

  • Verified answer
    v-mengmli-msft Profile Picture
    on at
    Re: From a MS Form Multi-select, in an email, embed only selected options which match a previous condition

    Hi @NotMyRealName ,

     

    Do you want to filter options that contain specific characters? If your question is multiple choice, you need to turn the answers into an array and then filter through that array. Like this:

    The user replies with Option1 and Option2 but I only want the option that contains 1.

    1.Compose and Compose2 are used to convert result to an array.

    split(outputs('Compose'),'"')

    2.Filter array is used to filter the options which contains 1.

    outputs('Compose_2')
    item()
    string(1)

    vmengmlimsft_0-1698980493926.png

     

    Best regards,

    Rimmon

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1