cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ninjamum
New Member

Checking if email has attachment

 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

 

1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User
Super User

@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



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

3 REPLIES 3
efialttes
Super User
Super User

@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



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



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!

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!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,606)