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

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:
I have the same question (0)
  • 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

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard