Skip to main content
Community site session details
Power Automate - Building Flows
Answered

How to get the actual URL from a Link (.url) added in a SharePoint Document Library

Like (0) ShareShare
ReportReport
Posted on 1 Jun 2024 01:56:58 by 11,059 Moderator

In SharePoint you can add a Link to a Document Library. We have setup a When a file is created (properties only) trigger in order to get the URL of the Link when it's added to the library.

 

However, in Power Automate the actual URL doesn't come through. All we see is the following URL structure. This is not the actual URL of the file which we need.

 
Any help on this would be great. Really hoping there is a way to do this, otherwise we will need to readdress our overall solution.

 

grantjenkins_0-1717206513378.png

  • Verified answer
    ManishSolanki Profile Picture
    15,085 Super User 2025 Season 2 on 01 Jun 2024 at 04:35:38
    Re: How to get the actual URL from a Link (.url) added in a SharePoint Document Library

    Hi @grantjenkins 

     

    First of all, I would like to say thank you ๐Ÿ™ for learning from your solution especially complex expression, transformation data etc. 

     

     

    Here is the solution to find actual link from "Link" created in doc library:

    Use "Get file" content to get content of link:

    ManishSolanki_0-1717216244590.png

     

    Next, add compose action and use expression to decode the base64 value from the content:

    ManishSolanki_1-1717216288780.png

    decodeBase64(body('Get_file_content')?['$content'])

    You will get the actual link in the output of compose action. You need to parse the text to get the link, which I know you are expert in ๐Ÿ˜€

     

    Output:

    ManishSolanki_2-1717216453746.png

     

     

     

     

    If this helps & solves your problem, please remember to give a ๐Ÿ‘ and accept my solution as it will help others in the future.

     

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful forโ€ฆ

Paul Stork โ€“ Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Communityโ€ฆ

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete
Loading complete