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 / Writing filter query i...
Power Automate
Answered

Writing filter query in 'Get files (Properties only)'

(0) ShareShare
ReportReport
Posted on by

I have created a Flow to get the Files from a Folder in sharepoint. This folder contains all the files with extensions like .pdf,.xlsx and .eml(referring to emails). Now in the Action Get files (Properties only), I need to write a Filter query to get all the Files except for .eml extension. 

 

I am not sure on how to write it. Need help

Categories:
I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    Hey @Anonymous 

     

    You use the Filter Array and leave out the '.eml'- See - https://powerusers.microsoft.com/t5/Using-Flows/Sharepoint-filter-by-file-type-extension/td-p/192353 

     

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • Community Power Platform Member Profile Picture
    on at

    @CFernandes Thank you, I am able to get only the files with the required extension.

    Once I pass the value in apply to each it gives me an error "The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_2')' is of type 'Object'. The result must be a valid array" I tried taking a compose action and in the array function passed the item from the Filter array but still seeing the same error.

     

    MohammedShaban_0-1650366273326.png

    MohammedShaban_1-1650366390287.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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 305 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 155 Most Valuable Professional

Last 30 days Overall leaderboard