web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Fetch all paths of fol...
Power Automate
Unanswered

Fetch all paths of folders & subfolders in a sharepoint site and store it in a List or Excel

(0) ShareShare
ReportReport
Posted on by
For example, If I have a SharePoint site https://sharepoint.com/Projects/Masterplan/MAH/DRAFT/output.xlsx. The output in lists or excel should be Projects | Masterplan | MAH | DRAFT | output.xlsx in the excel or list under different columns
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,183 Most Valuable Professional on at
     
    You can use a split function for this and split on the / character. This would return an array with items. After that you can skip the first few items and join it back together with the | character.
     
    Below is an example
     
    @{concat('TestSplit', rand(0,999))}.csv
     
    Site | Library | FolderA | FolderB | FileNameWithExtension
    @{join(skip(split(variables('Hyperlink'), '/'), 3), ' | ')}
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard