Announcements
Hi, when creating a collection in powerapp, is it possible to get s specific folder and not the full document library?
i.e. ClearCollect(colDocuments, "Documents/SMR Documents/SMR-0026/)
@Anonymous
A specific folder path cannot be stored as a Collection because it is not a table. It’s a text string. Therefore store it as a SET variable instead.
Set(varDocuments, "Documents/SMR Documents/SMR-0026/“)
---Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
@mdevaney thanks for the reply.
using a buttons OnSelect event,
Set(varDocuments, "Documents/SMR Documents/SMR-0026"); ClearCollect(colDocuments, varDocuments)
doesn't return the contents of the folder.
@Anonymous You want to get all of the documents from a folder and store in a collection? Sorry, I misunderstood your question.Use this code:
ClearCollect(colDocuments, Filter(LibraryName,'Folder path' = "Documents/SMR Documents/SMR-0026/"))
This old thread is helpful:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Filter-List-Document-Library-to-show-items-in-a-specific-folder/td-p/476704
@mdevaney thank you.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 345 Most Valuable Professional
11manish 207 Super User 2026 Season 2
Mohsin Ali 177