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 / Email automation excep...
Power Automate
Unanswered

Email automation exception list

(0) ShareShare
ReportReport
Posted on by 8

Hello,

 

  I have a very basic flow that sends a reply to the sender when a shared mailbox receives a message. I need to exclude some sender domains from receiving a reply. How can I do this? 

 

Comeon_0-1613400017319.png

 

Thank you for any advise

Categories:
I have the same question (0)
  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    Like this:

    Paulie78_0-1613405464491.png

    The second compose is an expression which determines if to respond or not, it looks like this:

    if
    (
     or
     (
     endsWith(triggerOutputs()?['body/from'], '@gmail.com'),
     endsWith(triggerOutputs()?['body/from'], '@somedomain.com'),
     endsWith(triggerOutputs()?['body/from'], '@paulie.com'),
     endsWith(triggerOutputs()?['body/from'], '@tachytelic.net'),
     endsWith(triggerOutputs()?['body/from'], '@bbc.couk')
     ),
     'No',
     'Yes'
    )
  • Comeon Profile Picture
    8 on at

    Thank you!!!

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard