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 / How to send emails usi...
Power Automate
Answered

How to send emails using priority rules.

(0) ShareShare
ReportReport
Posted on by 53

Hello everyone,
Help please.

I have a sharepoint list with a dropdown column that has 3 possible values (No, Yes and Derog).

I would like to send emails with the following priority rules:

Firstly,

I do a filter on my data to take the rows that respect some conditions (Let's call the result of the filter Table A, which is a set of several rows).
Secondly, 
If I have No, Yes and Derog in my Table A ==> I use Derog to send a Derog email;
If I have No and Yes in my Table A ==> I use Yes to send an email Yes
If I have Yes and Derog ==> I use Derog to send a Derog mail.
If everything is Yes ==> I send the mail Yes
If everything is No ==> I send the mail No
If all is Derog ==> I send the Derog mail.


Could someone help me with some ideas?

Thank you in advance 

Categories:
I have the same question (0)
  • abouchaalaBAIT Profile Picture
    932 Moderator on at

    Hello @aouattara , 

    I would : 

    1. Init variable array : varDrpValues
    2. Get Table A
    3. Set varDrpValues value to dropdown values. Ex ['Yes','Yes','No','Derog']
    4. Switch
      1. Case varDrpValues contains Yes and contains No and contains Derog...
      2. Case varDrpValues and(and(not(contains(varDrpValues, 'Derog')),contains(varDrpValues, 'Yes')),contains(varDrpValues, 'No'))
      3. etc ....

    ----------------------------------------------------------
    If I have answered your question, please mark your post as Solved. 🆗✔️
    If you like my response, please give it a Thumbs Up. 👍
    You can accept more than one post as a solution.

  • aouattara Profile Picture
    53 on at

    @abouchaalaBAIT  Thanks for your reply.
    I would like to know how to use the "contains" condition in switch? Because it's the "equals" operator that switch has.
    Below is a screenshot of part of the flow.

     

    powerautomate1.png

  • abouchaalaBAIT Profile Picture
    932 Moderator on at

    Oups, my bad. You ll need to use nested if switch case only accept static values

  • Verified answer
    aouattara Profile Picture
    53 on at

    Hello @abouchaalaBAIT 

    The variable array didn't work.

    Finally I created a csv table and used it in condition with the contains operator. It worked.

    Thanks to your idea, I was able to take this other approach.
    Thanks 

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
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard