web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How Filter Query Get F...
Power Automate
Unanswered

How Filter Query Get Files (properties only) works

(1) ShareShare
ReportReport
Posted on by

Hi, 

So I currently have a flow that gets files in a SharePoint library with a date that is greater than today and deletes them. I know that the get file properties action has a limit of 5000 files, but I was wondering if this takes into account the optional filter query. For example, without a filter query the action retrieves up to 5000 files in the library, but I am wondering if using the filter query option means the action takes up to 5000 files that satisfy that filter criteria? 

Categories:
I have the same question (0)
  • Ashwin7104 Profile Picture
    671 on at

    Hey @Anonymous - If the Top Count property is left blank, the Get files property returns just 100 entries. Because the threshold limit is 5000, you can use '4999' as the top count limit. You can utilise the Pagination concept in the GetFiles action to loop through and take action if the library has more than 5000 files.

     

    Count limit: https://docs.microsoft.com/en-us/sharepoint/dev/business-apps/power-automate/guidance/working-with-get-items-and-get-files 

     

    Pagination : https://powerusers.microsoft.com/t5/General-Power-Automate/Get-items-from-Sharepoint-action-fetches-first-100-records-only/td-p/315164

     

     

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 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard