cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GakinImara
Advocate I
Advocate I

Get a list of files in a Sharepoint Document library that has been changed in the last 24 hours

Hi, guys! 🙂

A novice Power Apps user here...

 

I've been trying to find a solution by making a gallery to display a list of files in a Sharepoint Document Library root folder (regardless of subfolders/including all documents in any subfolders) that has been modified the last 24 hours...

 

I'm kind of stuck trying to figure this out and my main concern is to be able to include all files regardless of subfolders from a Sharepoint Document Library root folder...

 

Scenario: I have a Document Library in a Sharepoint Site with several subfolders which I want my Power Apps users to track for changes every day. But I want to include the view to display all the files in all subfolders from the root-folder and filter the result based on last modified datetime below 24hrs...

 

Any leads to the solution are appreciated! 🙂

 

Best regards,

Ga Kin

1 ACCEPTED SOLUTION

Accepted Solutions
Suchitra1996
Resolver II
Resolver II

If you want to use the cascading galleries like shown below:

 

gallery 1 has a folder (UI) along with files in the root folder, and the second gallery shows files from the UI folder.

Suchitra1996_0-1615563629265.png

 

for gallery 1, Items: Documents

for gallery 2, items: Filter(Documents,'Folder path'="Shared Documents/"&Gallery3.Selected.Name&"/")

 

you can use the names that you have created and apply the Modified date filter in the query as per your requirement.

 


--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Suchitra1996
Resolver II
Resolver II

@GakinImara 

 

you can use below filter on the gallery's Item property:

Filter(Documents,IsFolder=false)

 

but this might produce some issues in case of large data sets, in this case I suggest that you use cascading galleries. Where you can selected the folder on the 1st gallery, and view the files within that folder in the second gallery.

Suchitra1996
Resolver II
Resolver II

If you want to use the cascading galleries like shown below:

 

gallery 1 has a folder (UI) along with files in the root folder, and the second gallery shows files from the UI folder.

Suchitra1996_0-1615563629265.png

 

for gallery 1, Items: Documents

for gallery 2, items: Filter(Documents,'Folder path'="Shared Documents/"&Gallery3.Selected.Name&"/")

 

you can use the names that you have created and apply the Modified date filter in the query as per your requirement.

 


--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Hey! Thank you for your help, this worked brilliantly! By the way, sorry for late reply - had an intense month. Happy Easter to you @Suchitra1996 ! 🐣 Enjoy the spring!

 

GK

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,853)