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 Apps / Get URL form an Link-E...
Power Apps
Unanswered

Get URL form an Link-Element from SP DocLibrary

(0) ShareShare
ReportReport
Posted on by 6

We have PA connected to a sharepoint document library. The data is queried and displayed in a catalogue.

The library contains various document types (Word, Excel, etc.). There are also elements of type "Link".
After all, this is not a file, but an alias for storing URLs in the form of a document.

If I use the "Link to Item" field, I only get the link to the document with the URL inside.

But how can I get the link directly to launch ist directly from Power Apps?

Unfortunately I couldn't find anything about it in the documentation.

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi!

    I think this is what you want if it is inside a gallery.
    Use the HTML Text and inside put the variable, here's an example:

     

     

    "Show your <a href='" & ThisItem.'Link to item' & "'>hyperlink</a>."

     

     

  • ollmcl Profile Picture
    2 on at

    Unfortunately that doesn't work.

     

    This only works for elements of the content types word, excel, pdf and so on.

    In my case there are also elements of the type "Link". This is just a shortcut file.

    When you click in the sp library on "new element", choose "Link", you can ad a Hyperlink (URL).

    SP generates an alias file. The document title is shortened to www.xxxxxxx.de.url (like powerusers.microsoft.com,url). The content inside the doc is something like this:

    [InternetShortcut]
    URL=https://powerusers.microsoft.com/t5/Building-Power-Apps/Get-URL-form-an-Link-Element-from-SP-DocLibrary/m-p/1479796#M383559

    When you link it in your way, clicking the link opens or downloads the file "powerusers.microsoft.com,url". Then you have to click again on the file or the button in the browser to open the target url.

     

    But i want to open the link immediately.

     

    Mayby this works in MS Edge, but not in browsers like chrome, safari or son on.

     

    When this doesn't work out of the box in power apps, i already have a solution with power automate.

    When a user adds or changes a element with the name ending ".url", power automate decodes the file to a string, cuts of the "[InternetShortcut] URL=" and returns the compose to an additional link field (in the sharepoint library). But this is very complicated …

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard