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 / Checking if email has ...
Power Automate
Answered

Checking if email has attachment

(0) ShareShare
ReportReport
Posted on by 5

 I want to direct the flow depending on if there is an attachment or not. For the life of me I have not been able to get the condition to work. This is my setting (image below).

I have tried HasAttachment is equal to fx true (like in the image), true, 'true', True, 'True', 

I have tried HasAttachment is not null, is not false, and 

I've read every post I can find on the subject.

Setting.PNG

This is the result

Flow Results.PNG

As you can see there is an attachment, yet the expression result is false.. I have wasted a day on this, researching and trying everything. What I did find is that the "older" condition builder gives more reliable results (when I was also trying to filter on PDF attachments). The newer version is a waste of time. The results is always false, regardless. If I remove the filter, the flow works.

Please what am I doing wrong?

This is the entire flow

 

Wholething.PNG

 

Categories:
  • Verified answer
    efialttes Profile Picture
    14,756 on at

    @ninjamum 

    What I can see is that there is an unexpected character "{ ", at least when add such output from the 'dynamic content menu'

    Flow_HasAttachment.png

     

    I also had problems with this output in the past, so I tend to eveluate presence/absence of attachments by means of this second approach:

    Flow_HasAttachment_2.png

    Hope this helps

  • ninjamum Profile Picture
    5 on at

    I am indebted to you. The curly bracket was the problem. I didn't put it there, I would never have thought to: the system did when I added it from dynamic content menu. I was able to remove it because I was using a template that used the "old" filter format which allows the Edit in Advanced Mode.

    Thank you!

  • efialttes Profile Picture
    14,756 on at

    Hi!

    Glad to help! I also got into trouble sometimes because old templates, or old posts. Since Power Automate evolves for better, we have to accept this little risk.

    my humble suggestion is to mark this topic as "Solved" by clicking "Accept as a solution". THis way others facing a similar problem can find a solution faster.

     

    Flow_AcceptSolution.png

    Thanx for making this community great!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard