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 / Navigate Gallery showi...
Power Apps
Unanswered

Navigate Gallery showing a SharePoint list and Subfolders

(0) ShareShare
ReportReport
Posted on by 395

I have created a gallery that shows a Document Library, the first thing that shows up is the all the Folders that have been created. I can select the folder and see all the files. My issue is how to navigate back to that first view with all the folders show. Also, I would like for the gallery to reset to that first view when the file is saved or closed. 

 

I have tried Navigation(gallery4) and it did not work, and the Back() function but it just took me the first screen of the app. 

2024-06-25_09-41-49.jpg

Categories:
  • BCBuizer Profile Picture
    22,895 Super User 2026 Season 2 on at

    Hi @lbolin ,

     

    Can you please share how the process works in your app where user select a folder and then the files are shown? Do you use a collection for this? Any screenshots would be most helpful.

  • Trout19 Profile Picture
    395 on at

    @BCBuizer 

    Ok so I found this tutorial (Power Apps Navigating Folders & Subfolders In A SharePoint Document Library (matthewdevaney.com) and I have the basic functionality, but my gallery is too small. Is there a way to replicate this on a back button icon I have on there or something like that.

    Before i select the folder name

    2024-06-25_13-49-55.jpg

    After I select the file name. I select the Car Files and it goes back the folder View. 

    2024-06-25_13-50-36.jpg

     

    I am just wanting if you select the back button to go back in the directory. 

  • BCBuizer Profile Picture
    22,895 Super User 2026 Season 2 on at

    Hi @lbolin ,

     

    The below formula should do the trick:

    Set(
     varFolderPathCurrent,
    	Concat(
    		With(
    			{_FilePath: Split(varFolderPathCurrent, "/").Value},
    			FirstN(
    				_FilePath,
    				CountRows(_FilePath)-1
    			)
    		),
     Value,
    		"/"
    	)
    )

     

    The way this works is that is takes the current path from the variable, splits it, removes the last part and then concatenates the result back to a string which is saved to the variable.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard