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 / building a condition t...
Power Automate
Answered

building a condition to check email headers for string

(0) ShareShare
ReportReport
Posted on by

So building my latest flow, it managed to start an infinite email loop after receiving an email from a mailbox that also seems to have its own autoresponder using but this one using mail rules.

 

I've hunted through but can't seem to find what I'm looking for, I can't see any obvious build functions for ignoring automatic replies. Therefore is there a way to pull back the email headers so that I can run a condition looking for a certain string or text such as X-MS-Exchange-Generated-Message-Source: Mailbox Rules Agent

 

I'm hoping that this will then prevent the flow triggering on Out of office messages and automatic mailbox responder rule-generated messages.

 

Any hints would be really useful! Thanks in advance.

 

 

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

    Hi @DB16114 ,

     

    Please try the trigger condition.

    A nice blog:

    https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Power-Automate-Trigger-Conditions-made-EASY/ba-p/441348

     

    Best Regards,

    Wearsky

  • DB-23070703-0 Profile Picture
    on at

    Sorry for the delayed response.

     

    Thanks for your reply, trigger conditions certainly look useful, although I am still struggling to find a condition that reads the email header. Does anyone have any examples or ideas where this has been achieved previously?

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard