cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MiniMe_83
Helper III
Helper III

Filtering Document Library

Hi,

 

I've connected a document library to a gallery in an app, the gallery shows Folder1, Folder2 and Folder3. I only want the gallery to display Folder 1 and it contents................... is there a way to to do this, I did try:

 

Filter(DocLibName, Name, "Folder1") but this doesnt seem to work.

 

Also, the document library, when not attempting to filter, doesnt display everything in the library, am I missing a trick?

 

Thanks for your help 

 

Thanks 

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @MiniMe_83 ,

 

I did a test for you.

1\ This is my document library 'Documents' . There is a 'General' folder in it.

v-xiaochen-msft_0-1620898092648.png

v-xiaochen-msft_1-1620898103403.png

 

2\ Add a gallery control and set its Items property to:

Filter(Documents,"General" in 'Folder path')

 

3\ The result is as follows:

v-xiaochen-msft_2-1620898146814.png

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

View solution in original post

Thanks, it seems so simple now you think about it. The other issue Im having is that not all folder and files are displaying in the gallery from the library. Ive now limited the gallery to just display one folder but nothing is being displayed, not even the folder. I should add if I remove the filter other folders and files appear and I checked the spelling etc.

 

Ive checked via seeing if the folders and files are displaying through a browser in SharePoint and they do, so Im not sure whats going on there when the gallery connects.....

 

Thanks for your help so far 

View solution in original post

3 REPLIES 3
v-xiaochen-msft
Community Support
Community Support

Hi @MiniMe_83 ,

 

I did a test for you.

1\ This is my document library 'Documents' . There is a 'General' folder in it.

v-xiaochen-msft_0-1620898092648.png

v-xiaochen-msft_1-1620898103403.png

 

2\ Add a gallery control and set its Items property to:

Filter(Documents,"General" in 'Folder path')

 

3\ The result is as follows:

v-xiaochen-msft_2-1620898146814.png

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

View solution in original post

Thanks, it seems so simple now you think about it. The other issue Im having is that not all folder and files are displaying in the gallery from the library. Ive now limited the gallery to just display one folder but nothing is being displayed, not even the folder. I should add if I remove the filter other folders and files appear and I checked the spelling etc.

 

Ive checked via seeing if the folders and files are displaying through a browser in SharePoint and they do, so Im not sure whats going on there when the gallery connects.....

 

Thanks for your help so far 

View solution in original post

v-xiaochen-msft
Community Support
Community Support

Hi @MiniMe_83 ,

 

Please provide some images to let me know what happened.

 

Best Regards,
Wearsky

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (21,535)