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 Automate / List Sharepoint folder
Power Automate
Unanswered

List Sharepoint folder

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

What's the "right way" to get the contents of a Sharepoint folder when you have the path as a string in a variable? The List folder action takes the folder id, not the folder path and the Get files doesn't take a path either (I have the folder path as text in two variables).

 

As mentioned here https://powerusers.microsoft.com/t5/Using-Flows/List-folder-sharepoint-using-Microsoft-Flow/td-p/30255 I can replace(concat(string1, string2), '/', '%252f') but that's an ugly hack:

  • Unmaintainable if the Flow team decides to change the internal format of the Folder Id
  • Begs the question: are there any other characters apart from '/' that needs to be encoded? Which ones?

Thanks,

MS

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @MS2,

     

    Could you please share a screenshot of your flow's configuration?

    Could you please show a bit more about your two variables that you mentioned?

     

    Thanks for your feedback, I could not find any document about encoding the special character (such as, '/', '_','-', etc.) within File Identifier or Folder Identifier currently. If I find the document related to it, I would reply here.

     

    Best regards,

    Kris

  • MS2 Profile Picture
    8 on at

    Hi Kris, I have adopted the replace(concat(string1, string2), '/', '%252f') until I find some other solution. Is there somewhere I could read about which variable formats that are planned as persistent between flow generations. If the official stance is that the Folder Id/File identifier will forever be the encoded path then the above approach is ok (but still ugly). So there are no other encodings apart from the /?

     

    Screenshot.jpg

     

    The full expression above goes 

    replace(concat('/contact/', string(items('Apply_to_each')?['ATSDocumentsFolder'])),'/','%252f')

     

    Best regards,

    MS

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard