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 / Modify Dropdown Items ...
Power Apps
Answered

Modify Dropdown Items Property to List Files From a Specific SP Doc Library Folder

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a dropdown menu that is populated with files from a SP document library "Documents" and it excludes folder names using this code on the Items property:

 

Filter(Documents, !IsFolder)

 

This works great but now I need to designate a specific folder "Gold" in the SP document library to list all files from excluding any folder names. How would I modify the Items property code to only list files (not folders) in the "Gold" folder of the SP document library "Documents"?

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,226 Most Valuable Professional on at

    Set the Items property equal to the following.

    Filter(Documents, 'Folder path'="Shared Documents/SP Fest Demo/" && !IsFolder)

    Replace "Shared Documents/SP Fest Demo/"  with the full path to the folder.  Make sure to include the closing '/' .  YOu will see that 'Folder path' isn't a match that is delegable since its not indexed and there is no way to make it delegable.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Pstork1 - Thanks for the quick response. This is the solution!  When designating the folder path, I tried several things before I got it to work. Even though the SP document library was "Documents" (default doc libr), I had to explicitly used "Shared Documents/" at the beginning of the folder path for it to work as shown below.  Thank you! 

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

     

  • Pstork1 Profile Picture
    69,226 Most Valuable Professional on at

    Just a quick clarification.  The Display name of the document library is "Documents", but the internal name is "Shared Documents".  That's what you will see in the URL if you look closely.  That's why you have to use Shared Documents in the path.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Pstork1 - Thank you for the clarification. 

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 Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard