cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

Show SharePoint Files in Browser

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Show SharePoint Files in Browser

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Highlighted
Community Champion
Community Champion

Re: Show SharePoint Files in Browser

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.

 

 

Highlighted
Resolver I
Resolver I

Re: Show SharePoint Files in Browser

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

Highlighted
Community Champion
Community Champion

Re: Show SharePoint Files in Browser

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.

Highlighted
Community Support
Community Support

Re: Show SharePoint Files in Browser

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Resolver I
Resolver I

Re: Show SharePoint Files in Browser

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

Thank you for your help.

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,831)