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 Apps / Help with a filtered g...
Power Apps
Unanswered

Help with a filtered gallary search function

(0) ShareShare
ReportReport
Posted on by

I am building an app based on sharepoint files and folders, The idea is to be able to quickly search build documentation within my department. I am able to get the gallary to filter and or search but it will not search any of the sub folders. I have taken several stabs at this with no luck. Here is my gallary filter

Filter('Production Documents', 'Folder path' = varFolderPath)
within "production documents" there are subfolders and files. I would like to use the search box to query based on filename with extension. here are a few of the attempts I have taken at this with no luck
 

Filter(
'Production Documents',
'Folder path' = varFolderPath &&
StartsWith('File Name', Search_box.Text)
)
 
 
Filter(
Production Documents,
StartsWith(
'Folder path',
varFolderPath
) &
Or(
IsBlank(FileName.Value),
StartsWith(
FileName,
Search_box.Text
)
)
)
Categories:
  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @mcfly227 ,

    Both 'Folder Path' and 'File Name' are not Delegable, so you will have issues as the Library grows. For the first piece of code, the 'Folder Path'  with a sub-folder no longer equals your base path. For the second one, I suspect that your problem is that the files in your sub-folders are beyond your Data Row Limit.

     

    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.

    MVP (Business Applications)   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

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard