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 / Get Folders with subst...
Power Automate
Unanswered

Get Folders with substring in the folder name in a document library over 5,000 items

(0) ShareShare
ReportReport
Posted on by 365
Hello,
 
I have a document library of over 5,000 items and I need to get all folders with a dynamic variable (Username) in their folder name so that I can then copy files into any folder that contains that username.
 
I created a test flow to see if I could identify the folders using the method in this video: https://youtu.be/3KESWwxuLyw?si=i_4gi43-MwOWRuuv
 
It seems to work for the folders after enabling pagination in the step's settings and setting the limit to 10,000. For some reason it does not work if it contains my specific username. I'm not sure why. All other usernames seem to be testing fine for this Flow.
 
I then copied this exact step into my production Flow and get an error that it's over the 5,000 limit.
 
Why would this step work in one Flow and not the other? Is there any other method of accomplishing this?
 
 
EDIT: I upgraded with this video process: https://www.youtube.com/watch?v=O3D2F62DuRk
 
My exported table shows a row with my username; however, the flow refuses to show that in the array if I add in the filters from the first video.
Categories:
I have the same question (0)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard