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 / Show SharePoint Files ...
Power Apps
Answered

Show SharePoint Files in Browser

(0) ShareShare
ReportReport
Posted on by 145

Hi,

 

I have an app where I get all the SharePoint Document of a particular record from Power Automate and collect those document in a Collection and show it in a gallery.

Now while launching each document, the document is directly getting downloaded.

I want the document to load in next tab of the browser.

 

This is the OnSelect Property of the button:

Launch("https://cloudfronts1.sharepoint.com" &ThisItem.ServerRelativeUrl)

 

Any help is appreciated.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,757 Most Valuable Professional on at

    Hi @tjalui ,

    I have always used

    Launch('Link to item')

    from the Gallery and they open in a Browser.

    You can also go into SharePoint Library Settings > Advanced Settings > Opening Documents in the Browser and further set where you want them to open from there (not sure if this affects PowerApps).

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • tjalui Profile Picture
    145 on at

    As I am collecting this in Collection, I am not getting the 'Link to Item' options.

  • WarrenBelz Profile Picture
    154,757 Most Valuable Professional on at

    Hi@tjalui ,

    If you Collect all fields in the Library, you will get this one.

    I use this all the time on Photos and Word & Excel documents and they launch in a browser from a collection I make Filtered on the cross-reference to the list.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @tjalui ,

    Could you please share a bit more about the "ServerRelativeUrl" column value?

     

    Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The Launch function works well to open a new tab to preview the file.

     

    As an alternative solution, I think a Html Text control could achieve your needs. Please add a Html Text control inside your Gallery, then set the HtmlText property to following:

    "<a href='https://cloudfronts1.sharepoint.com" & ThisItem.ServerRelativeUrl &"' style='text-decoration: none' color='red'>Launch File</a>"

     7.JPG

    then click the "Launch File" in your Gallery, then check if the file could be displayed well in your browser.

     

    Best regards,

  • tjalui Profile Picture
    145 on at

    I used the HTML text control and it is working perfectly.

    Thank you for your help.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard