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 / Condition Filter not W...
Power Automate
Unanswered

Condition Filter not Working on .png signatures in email attachments

(0) ShareShare
ReportReport
Posted on by 4

Apologies in advance as I'm new to Powerautomate.

 

I'm trying to filter out .png email signatures when grabbing email attachments and uploading them to OneDrive. I am able to successfully grab all attachments and download OneDrive. However, I can't get the condition filter to work on excluding .png signatures and I've tried countless solutions provided in other threads. Please see the whole flow below:

 

rrpglad_0-1650563140229.png

rrpglad_2-1650563262913.png

 

The flow completes and correctly iterates to true on .txt files and false on .png files as shown in the flow log:

True for .txt:

rrpglad_3-1650563597082.png

False for .png:

rrpglad_4-1650563706403.png

 

I am still receiving all .txt and all .png attachments in the provided folder path. I've tried using "Attachment Name", "Attachment Content" and all variations of conditions (contains, does not contain, ends with, does not end with, etc) and all variations of values (txt, png, image, image00, etc) and an IndexOf function with no success. This should work looking at the flow log and other solutions. Any help is appreciated.

 

 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @rrpglad,

     

    I would use the contentType property of the attachment. You can check if that does not equal to image/png.

     

    Below is an example.

    This setup is slightly different to yours. I first filter the list of attachments via a Filter Array action instead of using a condition within the apply to each loop.

     

    With this approach you will only loop through the (filtered) ones you need. That means less loop runs 😛

     

    In the filter array I am using an expression:

     

    item()['contentType']

     

     

    contenttypeproperty.PNG

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard