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 / Trying to receive a te...
Power Automate
Answered

Trying to receive a teams alert in case I receive a specific email or any email of a specific domain, previously included in an array.

(0) ShareShare
ReportReport
Posted on by 9

Does anybody know why this doesn't work?

Due email overload, I'd like to receive a teams alert when I receive an email of an specific person, or any email from a specific domain. After seeking info everywhere, it seems this should work, but it doesn't. I would appreciate your help. thanks!

 

micaco_1-1677934651952.png

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @micaco ,

     

    Based on your requirement, you need to swap the order of the two input values:

    vjefferni_0-1678068303518.png

     

    it means the email included in the array.

     

    Best regards,

  • micaco Profile Picture
    9 on at

    But this shouldn't work for cases of any address contained in a specific domain.

    Because if, in remitentes array I include "coke.com", to be notified when someone from coke.com write mes, this swap would seek "andrea@coke.com" in remitentes array, and in remitentes array I would only have included coke.com

     

    but.. I've just found the solution ! here go:

     

    micaco_0-1678078039732.png

     

    Thanks for responding me jeffer_ni ! I appreciate so much.

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @micaco ,

     

    Actually, I cannot understand the Filter array action in your current flow. The "Elemento" and "De" values are both from trigger outputs. The array variable is not related. Maybe you need to test the flow use emails from different senders.

     

    You can create two variables, one of type array and the other of type string. The array variable includes all specific addresses and the string variable includes the domain. Within the Condition control, there would be two conditions combined with Or:

    vjefferni_0-1678081734984.png

     

    Best regards,

  • micaco Profile Picture
    9 on at

    Yes, you were OK with your response about filter array.

    So, your exemple is closer to the solution. It is OK for an specific emails address listed in the senders array.

    But we continue having a problem with emails of unknown senders received from any domain included in an array variable, because your domain variable is string and can process only 1 value (1 domain).  I need to be aware from emails of different domains. The question is, how to apply a condition that validates emails received from a domain listed in the domain array variable? 

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @micaco ,

     

    In that case you will need Apply to each and Iterate through all domains.

    vjefferni_0-1678084697841.png

     

    or you can make two parallel branches if the domains are different from those of addresses.

    vjefferni_1-1678084981830.png

     

    or sequentially check addresses and domains:

    vjefferni_2-1678085159028.png

     

    Best regards,

  • micaco Profile Picture
    9 on at

    I bow down 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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard