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 / OneDrive for Business ...
Power Automate
Answered

OneDrive for Business "List Files in Folder" limit of 20 Elements (BUG?)

(2) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

is there a limit of the results of the function "List Files in Folder" for OneDrive for Business? I get only 20 Elements. Is this a Bug?

 

Thank you

Categories:
I have the same question (1)
  • Verified answer
    v-zhos-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    The "List file in folder" action has limit with 20 items in microsoft flow currently.

    If you would like the limitation to be increased or don't want to have the limitation, you could vote for idea in flow idea forum so it might be considered in the future releases:

    https://powerusers.microsoft.com/t5/Flow-Ideas/List-files-in-folder-on-OneDrive-without-limit/idi-p/...

    Best Regards,

    Community Support Team _ Zhongys

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • asdfaf4 Profile Picture
    on at

    Wow!! This is the most ridiculous decision I have ever heard!!   Who wants automation for only 20 files...!!!  Even worse, let's not indicate anywhere (tooltip, name) about this ridiculous limit and have people spend hours troubleshooting why only 20 files get ever returned...

     

    It would be faster to rename 20 files by hand!   Either rename the pathetic action to "list on 20 files" or  please remove this unusable limit ASAP...

  • RorySmit Profile Picture
    46 on at

    Hi!

    There is a overwrite solution that will solve your problem.

     

    • Go to the action settings 
       
      - Turn on Pagination, and set a new maximum
    • Your flow will ignore the maximum off 20 files and use the giving maximum.

    actionsetting.png

     

    page.png

     

     

    Greetings,

     

    Rory

  • johnrivo Profile Picture
    21 on at

    Thanks RorySmit,

    your solution worked perfectly in my scenarios. I had the same issue in few flows I created. 

    Simple and effective. 

    Thank you very much!

  • testasdfasfsafa Profile Picture
    309 on at

    Wow... Microsoft is not even responding to stupidly obvious problem...!  It would take them 5 min to increase the limit to a more manageable number like 1,000 or 5,000.  This tool (or this forum) doesn't get enough attention from Microsoft.

  • A_Hoogenboom Profile Picture
    10 on at

    This is an example of incompetence or naivety at best by Microsoft Development. A tool for "Automation" developed with a limit of 20 items. (I can manually write 20 items in a database in my sleep!) Why waist hours in learning PA? I can not believe (Actually I can!) I had to turn pagination "On" and set a legitimate threshold limit myself. The lack of up front documentation and the fact that this has been reported as a problem for over 4 years only confirms “Newbies” in charge.

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 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard