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 Apps / Get only top level fol...
Power Apps
Unanswered

Get only top level folders on dropdown and based on selection show subfolders

(0) ShareShare
ReportReport
Posted on by 522

I am planning to fetch first top level all folders from Doc library in dropdown and based on the selection from 1st Dropdown show the second level libraries in 2nd dropdown (show 2nd dropdown if folder exists else show all files in second level library if again files exists) in the gallery.

 

If we have 3rd level libraries again same show dropdown else show files else no dropdown should be visible. It goes on based on the level of sub folders.

 

But for to show the top level folders i receive this delegation message.

 

 

 

Filter(Documents, 'Folder path'= "Shared Documents/" && IsFolder=true)

 

 

Message : Delegation Warning, The highlighted part of this formula might not work correctly with column "Folder path" on large data sets

Message:   Delegation Warning, The "Filter" part of the formula might not work correctly on large data sets.

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,061 Most Valuable Professional on at

    Hi @Nikhil2 ,

    That is because 'Folder Path' is not Delegable. If you have a large Library, it is better to use Text fields in the metadata (fields) and then Filter on them.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • Nikhil2 Profile Picture
    522 on at

    @WarrenBelz Yes I have large library, and it show all the top level, subfolders when i select value {Name}. How do i filter only top level first and not to show everything on first level itself.

  • WarrenBelz Profile Picture
    153,061 Most Valuable Professional on at

    @Nikhil2 ,

    As mentioned, put some Text fields in the Library and add your folder names in them (or any other data you want to Filter on. It is then completely Delegable (I have Libraries over 50k files using this).

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard