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 / When opening sharepoin...
Power Apps
Unanswered

When opening sharepoint file from powerapps in mobile, open it in browser and not office 365

(0) ShareShare
ReportReport
Posted on by 130

Hi Community,

 

I'm trying to open sharepoint files (pptx,pdf's and stream videos) from powerapps in mobile and Office 365 is installed on my mobile. 

 

I want to force the files to open in mobile browser and not office 365 because some files are having restricted view permission which doesn't get open in office 365 but only in browser.


Read permission files do get open in office mobile.

All files works fine when using powerapp on desktop/laptop because it opens in browser by default.

Same thing I want for mobile.

I tried :

1. Launch(
Gallery2.Selected.'Link to item'&"?web=1"
)

2. Launch(
Gallery2.Selected.'Link to item',
Blank(),
LaunchTarget.New
)

 

But no luck.

 

Any response would be helpful.

Categories:
  • Griffin_C Profile Picture
    125 on at

    Try Launch(Gallery2.Selected.AbsolutUri)

    I know this works for List attachments, but I'm not sure if it will work for library files.

  • r_voyager Profile Picture
    130 on at

    Hi @Griffin_C ,

     

    I tried you formula but got the error AbsolutUri is not recognized. You were right AbsolutUri works only for list attachments not for sharepoint library files. 

  • Griffin_C Profile Picture
    125 on at

    The other option would be to build a document browser inside your app, but it can be a lot of work if you're trying to account for every possible document type. Check out this video if you want to try that route:

    https://youtu.be/JxPznTUsaiQ

  • RajnishMahaseth Profile Picture
    58 on at

    The issue you are facing is because by default, when you open a SharePoint file from Power Apps in mobile, it will try to open it in the Office app if it is installed on your device. The Launch function you tried does not have the option to force the file to open in the browser.

    To force the file to open in the browser, you can use the LaunchUri function. The LaunchUri function takes two arguments: the URL of the file you want to open, and the launch target. The launch target specifies where the file should be opened. In this case, you want to open the file in the browser, so you will set the launch target to LaunchTarget.Browser.

    The following code will force a SharePoint file to open in the browser in Power Apps mobile:

    LaunchUri(Gallery2.Selected.'Link to item', LaunchTarget.Browser)
  • r_voyager Profile Picture
    130 on at

    Hi @RajnishMahaseth 

     

    There is no LaunchUri function available in powerapps.

     

    Can you recheck if function was something else.

  • r_voyager Profile Picture
    130 on at

    Hi @Griffin_C ,

     

    Thank you for the suggestion, I will give it a try to preview documents in PowerApps itself and if it worked properly, I'll let you know.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard