cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
albeadams
Frequent Visitor

PDFs hosted on Sharepoint and accessed through Launch not opening in Office mobile app

I have an app with a gallery pulling from a Sharepoint list, one of fields is a link field for PDFs that are also hosted on Sharepoint. Clicking on this link using Launch() works both on my browser and in my iPhone, except when I also have the Office app downloaded onto my phone. In that case, when I click the link, it goes straight to the Office app but nothing opens. When I delete the Office app and try again, it goes back to successfully opening in my phone's default browser. Since I can't ask users to delete their Office app to make this work, anyone know why I can't open this in Office app, or a way to set the default action to open in the phone browser? I haven't found any sources on this problem or ways to change the behavior of a link being opened.

7 REPLIES 7
WarrenBelz
Super User III
Super User III

Hi @albeadams ,

Mobile Power Apps will not launch SharePoint URLs due to the way they resolve URLs anonymously (even if the user is signed into SharePoint) - this is a known limitation.

However you can connect to the Library with the PDF in it, you can use Launch('Link to item') if you can identify the item needing to be opened.

 

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.

Thanks Warren. I'm able to use the Launch('item') from within powerapps on the mobile phone, opening a PDF that is hosted on Sharepoint. The issue is it opens in my web browser if I don't have the Office app installed on my phone without any problem.  But when I install Office apps, it attempts to open the PDF hosted on Sharepoint in the Office app, or at least appears to, but nothing happens, no errors are thrown, just opens Office app.

 

Do you mind clarifying the difference between these two when you say the app won't launch SharePoint URLs, but I can use Launch('link to item')? Are those two different things?

Hi @albeadams ,

I had not struck the Office installation issue before - our users open dozens of site plan PDFs daily on iPads using the 'Link' / 'Link to item' to the SharePoint item.

To answer your question, yes they are (to Power Apps) two different things. In the first ('Link'), you have the SharePoint Library connected to the app and authenticated "internally". The second is to Power Apps an "external" URL, which as I mentioned it tries to resolve anonymously and cannot do so.

 

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.

I see, thanks. Yeah this is an internal link. I had not known about 'Link to Item'. My button is a Lauch(ThisItem.PDF), where PDF is the name of a column that defines URLs of PDFs that are housed in a Document library. So a list to feed the gallery and within that list, a column of URLs reference a document library. In any case, it works in all cases except with Office installed. Very strange.

Hi @albeadams ,

Do you want to launch your file in your Office Mobile App?

 

If you want to launch your file in your Office Mobile App, I afraid that there is no way to achieve your needs in PowerApps currently. You could consider try the following formula in your app:

Launch("ms-office//" & ThisItem.PDF)

 

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

 

In addition, you could consider install SharePoint App in your Mobile device, then execute the Launch function in your app, check if the file could be opened in SharePoint App.

 

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.

Thanks for the response. Actually I don't care where it opens, just that it opens. As stated above, the PDF opens fine without the Office mobile app installed on my phone. When I install the Office app, however, it seems like it attempts to open in the Office app by default but fails. When I delete the Office apps again, it goes back to working by opening in the browser, in my case Safari. I'm fine with it opening in the browser, really it doesn't matter at all so long as it works. I can't ask anyone to delete the Office app if they have it, so trying to make it work in case they do have it installed.

 

Is there a way to specify that it always open in the browser, similar to how you have it opening in "ms-office//"? That way I could avoid it not working when it attempts to open in the Office app.

 

Also note that this is only when the Office app is installed. When I have either the Sharepoint or OneDrive app also installed, the PDFs open fine. With just Sharepoint, it still defaults to the browser. With OneDrive, it defaults to opening in OneDrive, but it does open. Only Office app doesn't work.

Hi @albeadams ,

Based on the issue that you mentioned, I think this issue may be related to Office App installed in your Mobile device. Currently, there is no detailed official doc mentioned about the protocols supported in Launch function.

 

If you would like to get further help in this issue, please consider submit an assisted support ticket through the following link:

https://powerapps.microsoft.com/en-us/support/pro

 

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.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (40,071)