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 / Convert File Share URL...
Power Automate
Unanswered

Convert File Share URL to File Full Path

(2) ShareShare
ReportReport
Posted on by 9
I want a flow that will convert any type of link of a file to its full path.
 
To have better understanding of the requirements below is the detailed explanation with sample case -
 
Let, the file name is SampleFile.docx now the File Path I want is https://SiteUrl.com/Shared%20Documents/SampleFile.docx from the file links as below where all of the links are referring to the same file.
 
  • https://SiteUrl.com/ETqedFnA8jhBqPtXEjO78hMBsW7a6fSKiNuCKiqVEmd5og
  • https://SiteUrl.com/:p:/r/teams/SiteName/Shared%20Documents/SampleFile?d=w1e79c3943c01408283331df19ab9a45b&csf=1&web=1&e=kng6Gl
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
    Hi,
     
    Ok, so let me make sure I am clear. You want to take a set of Urls and in Real-Time convert them the File Path (aka the HTTPS file path) correct?
     
    Hmm well not knowing in what scenarios and or where/what type of app or automation is going to need to use this.
     
    1. Create a SharePoint list
    2. Add a Text Column, lets call it FullPath
    3. Add another Text Column called, Alias, where Alias will be these other urls
     
    *Note you may need to use a multiline text field to fit your entire Urls, and do not use the Url field its too short
     
    Ok now this is where I am a list stuck as there are options and I have to know how is calling and how to get the details.
     
    1. Create a Cloud Flow, with a trigger that accepts a single string as input
    2. Use that string to do a Get Items from the SharePoint list, filtering on the Alias column
    3. If you get a row back, send the user back the proper fullpath that you have in that Column
     
    now this could be made to be callable from other flows.
    If you want to call this from different places.
     
    1.Then create a cloud flow that uses the HTTPS Trigger (it is an API hosted endpoint essentially)
    Let them pass the String in the body
     
    2. Take the string from the body and again do your Get Items with the filter for Alias they sent in
    3. pass back an HTTP Response to them with the value they need.
     
    Need more info to tell you more.
     
  • CU03101239-0 Profile Picture
    9 on at
    @FLMike Could you please help us with the action we need to use on that flow ?

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard