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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sending an email based...
Power Automate
Answered

Sending an email based on condition

(0) ShareShare
ReportReport
Posted on by 6

Hi. I am having a small issue with sending an email when conditions are met. So here is the verdict.

 

I have set many groups A-F. I am just showing groups A and B here in the image. Each group has a different set of recipients. I am included in all groups so I get a copy when conditions of any of the groups are met. I have another step so that if none of the conditions meet I only get an email. 

 

The issue is that when let's say one of the conditions in Group A is met, the email gets sent out successfully, however, I get two copies, one from the one with the group, the other is just myself. So becomes a duplicate. 

 

When none is met I do get only one email which makes sense from the flow.

 

I tried putting the email for myself in the "if no" condition for each group, but then I get too many duplicates.

 

I just need help sorting out this logic. Thanks!

 

 

email condition.png

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

    Hi @amdb11 ,

     

    If you use actions that run in parallel, each branch will move on to the same next step after running the condition, which is similar to apply to each.

    You can modify your flow in this way, and set a variable, and when each condition does not meet, increase the value of this variable by one, and determine whether to send only one email by the variable value.

     

    vmengmlimsft_0-1697437392653.png

     

    vmengmlimsft_1-1697437424532.png

    vmengmlimsft_2-1697437444025.png

     

     

    Best regards,

    Rimmon Li

  • amdb11 Profile Picture
    6 on at

    works like a charm thanks!

  • amdb11 Profile Picture
    6 on at

    Flow works well I tested few times and it works as I want it to. However, the run when it stops at one of the groups shows as failed for the next step. Is there a way to fix the Failed run outcome?

     

    amdb11_0-1697528452172.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard