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

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Retrieve only e-mails from a specific domain form the inbox

(0) ShareShare
ReportReport
Posted on by 6

Hi there,

I am pretty new to Power Automate and I try to check every 30 minutes wether I received e-mails from a certain domain like @company.com using the From-field (or in German Von). Is there a way to do this using expressions?

 

ToebiSchmoebi_2-1629135308064.png

Thank you a lot!

 

Best regards

Tobias

I have the same question (0)
  • Ellis Karim Profile Picture
    11,465 Super User 2025 Season 2 on at
    Re: Retrieve only e-mails from a specific domain form the inbox

    It would be better to use an email trigger, this operation triggers a flow when a new email arrives:

    ekarim2020_0-1629136000565.png

    You can specify the from addresses as the condition for the flow.

    Or you can add a trigger condition which will only trigger the flow when your condition is met. For example, you can enter the domain name (eg. MS365.com) in an expression:

    ekarim2020_2-1629136652854.png

    ekarim2020_3-1629136693400.png

    @contains(toLower(triggerOutputs()?['body/from']),'@MS365.com')

    Ellis

     

     

     

     

  • ToebiSchmoebi Profile Picture
    6 on at
    Re: Retrieve only e-mails from a specific domain form the inbox

    Thanks for your reply!

     

    Could you explain why it would be better. Would using a single e-mail trigger be better per se (e.g. would the execution be faster)? Or would it be better just to filter by e-mail domain? I had a discussion with my stakeholder wether to use single triggers would be better or not, so I am just curious (maybe I can change his mind).

     

    Just for the case that I can't change his mind: Would there be a way to filter the e-mails how I initially intented?

     

    Thanks!

     

    Best regards

    Tobias

  • Verified answer
    Ellis Karim Profile Picture
    11,465 Super User 2025 Season 2 on at
    Re: Retrieve only e-mails from a specific domain form the inbox

    Using a schedule to check the Inbox of a mailbox every 30 minutes will be a very inefficient way to execute the flow and a wasteful use web of resources when Microsoft offers a ready-made trigger to do what you need. This trigger is constantly "listening" to all incoming emails. Remember that your use of Power Automate is also not unlimited (see Requests limits and allocations).

    A single trigger will be more efficient else you will creating multiple flow steps or even duplicate flows - and that means there are more part to manage and fix should things go wrong.

    There are a number of different ways to achieve your desired outcome, here are three possible options: Filter using the From email address:

    ekarim2020_3-1629190846683.png

    or use a condition to check the From address:

    ekarim2020_2-1629190797206.png

    or use a trigger condition to check the senders email domain name:

    ekarim2020_4-1629190903591.png

    Or a combination of the above.

    The key point is to start with the trigger When a new email arrives, then build a working flow that you can understand. Start simple and don't worry too much about all the different ways of something. You can later refine and improve your flow as you discover new issues, efficiencies or if your requirements change.

    Ellis

     

     

  • ToebiSchmoebi Profile Picture
    6 on at
    Re: Retrieve only e-mails from a specific domain form the inbox

    Thank you for the clarification!

  • User_123 Profile Picture
    2 on at
    Re: Retrieve only e-mails from a specific domain form the inbox

    @ekarim2020 Hi, I have a similar scenario. However I do not want to run the flow multiple times. I have a flow that would run once a day. When it runs it should get all attachments from emails that have arrived that day from a specific domain. Since the Get emails (v3) only allows to to pick a maximum of 25 emails at a time, I am afraid I might lose out on some emails. The best solution for me is to filter it based on specific domain ad I want to run the flow only once a day due to Requests limits. Is there a solution to this?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 650 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 341 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard

Featured topics

Restore a deleted flow