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 / Filter Sharepoint Doc ...
Power Apps
Unanswered

Filter Sharepoint Doc Library Gallery

(0) ShareShare
ReportReport
Posted on by 2

Forgive if this is a basic question (still a bit of a newbie to PowerApps. I'm trying to build a three-deep list of documents from three galleries, and I'd like to filter the first gallery by setting the "Scheduling" folder in the gallery filter. It works, but it grabs everything in the Document Library when I would like it to limit itself to just the Scheduling folder. In this case it's just finding everything with Scheduling. How can I narrow the results to just what's in the Scheduling folder?

docs_gallery.png
Categories:
  • Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @rik_TP ,

     

    To filter documents in a SharePoint document library gallery to show only items from a specific folder (e.g., "Scheduling"), you need to use the 'Filter' function in Power Apps.

     

    Here's an example formula you can use in the Items property of your gallery:

     

    Filter(
    'YourDocumentLibraryName',
    StartsWith(FolderPath, "/sites/YourSiteName/Shared Documents/Scheduling")
    )

     

    Replace 'YourDocumentLibraryName' with the actual name of your document library, and 'YourSiteName' with the name of your SharePoint site.

     

    StartsWith(FolderPath, "/sites/YourSiteName/Shared Documents/Scheduling") is the condition. It filters items where the 'FolderPath' starts with the specified path. Adjust the path according to your SharePoint site structure.

     

    Make sure to adapt the paths based on your actual SharePoint site structure. This should help you narrow down the results to only show documents in the "Scheduling" folder.

     

    Thanks!!!

     

    Please consider marking my response as the accepted solution if it successfully resolves your concern. If you found the information beneficial in other aspects, kindly express your appreciation by giving it a thumbs-up.

  • rik_TP Profile Picture
    2 on at

    Hmmm, the path is not resolving. I'm in the government cloud if that is helpful at all. But when I go to the SharePoint library to get the path, it reads:

    https://YYY.sharepoint.com/sites/SchedulingUnit/Scheduling_Library/Forms/AllItems.aspx?id=%2Fsites%2FSchedulingUnit%2FScheduling%5FLibrary%2FScheduling&viewid=a9e75030%2D26c5%2D48fd%2Daf4a%2D8577c8791bb4 

    When I try to enter the path as you suggest, it displays a red-underlined error. Adding the path above does not work either.

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 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard