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

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,830 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

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard