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 / How to specify several...
Power Automate
Unanswered

How to specify several OR criteria in the Get Files (properties only) > Limit entries to folder ?

(0) ShareShare
ReportReport
Posted on by 53

Hello

 

How to specify several OR criteria in the Get Files (properties only) > Limit entries to folder ?

 

Thanks!

Categories:
I have the same question (0)
  • mahoneypat Profile Picture
    1,720 on at

    Do you mean you want an Odata Filter Query in the Get File properties action to only work for 2 specified subfolders?

     

    Pat

  • PowerAutomate3 Profile Picture
    53 on at

    @mahoneypat no I am not talking about the ODATA filter field because this will have to run for the whole list of files/subfolders and this is too big. That's why I want to limit the query to few specific subfolders but I want to specify subfolder1 or subfolder2 or subfolder3 instead of creating three times a Get Files step.

  • mahoneypat Profile Picture
    1,720 on at

    That is what I meant.  You can use the Odata filter in the Get Files to pre-filter the returned results just to those folders.  Example syntax below that worked for me.

     

    mahoneypat_0-1635900427562.png

     

    (FileDirRef eq 'sites/Sandbox/Docs2/Folder1') or (FileDirRef eq 'sites/Sandbox/Docs2/Folder2')

     

    Pat

     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard