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 / How to get the actual ...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on by 11,063 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

Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at

    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.

     

  • grantjenkins Profile Picture
    11,063 Moderator on at

    @ManishSolanki Thanks, this works perfectly - very much appreciated.

     

    This was a critical step needed so I can get the content of the actual file and run AI builder over it to extract out some keywords 🙂

     

    It's great you (and everyone else) is still super active in this community. Unfortunately, I've been consumed by work stuff and haven't had much time to contribute - but hopefully get some more time over the next few months.

  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @grantjenkins 

     

    I am glad it solves your issue. Yes, I was following your solution when you were active and learnt lot of tricks to solve the problems. Learnt one more trick from this post using shortcut link for keywords extraction in AI builder, awesome! See why I am your big fan 😀

     

    Happy to see you back! I am sure you will beat me in the leaderboard 😀🙌

     

     

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

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard