Notifications
Announcements
Hi, all-I'm using the document upload functionality Shane Young came up with a few months back and it looks great and it gives me the file URL back just like I wanted--except when I 'Launch' that file URL it downloads a copy instead of opening the document in browser. Is this actually a SharePoint settings problem? What can I do?
Thanks in advance!
@Schumanar My 1st assumption is that it has to do with your web browser's settings rather than SharePoint or PowerApps
Link to Article On How To Change Browser Settings:
https://apemobile.zendesk.com/hc/en-us/articles/115001569212-PDF-files-are-downloading-instead-of-displaying-in-web-browser-or-opening-in-a-new-tab
---Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
I should have explained that, for some reason, it works fine if I copy and paste the link into the URL field and then 'launch'. Also, it's all Excel and Word docs hosted in an SP doc library.
Hi @Schumanar,
Could you please this option in the Advanced settings of your document library?
It might help us figure out your issue...
Just verified-this is already the setting in my library (and it works fine in cases where I've copied and pasted the file link).
Ok. Could you please share with us how the document full url looks like when you launch it from Power Apps using the Launch function?
It comes out like this:
https://danaher.sharepoint.com/sites/idtdatagovernance/Request Files/TestFiles/Test file.docx
This is how I'm getting the link from Flow, if that helps at all:
I think this is the problem... Urls that point directly to a file will download it...
On my side I've put an url like yours (https://xxxxxxxx.sharepoint.com/sites/ServiceStatus/Shared%20Documents/Document.docx) in a Launch() function on a button and clicking it also downloaded the file. By the way, pasting that url directly in the url textbox of the navigator downloaded the file as well. I'd be very surprised that it would open the file as to do so, the url should rather look like this:
https://xxxxxxx.sharepoint.com/sites/ServiceStatus/_layouts/15/Doc.aspx?sourcedoc=%7BA2D0B680-6E84-426A-9AB1-64ED4FF48F24%7D&file=Document.docx&action=default&mobileredirect=true&CT=1589482023942&OR=ItemsView
Putting an url like this one in the Launch() function will open it directly in a new tab instead of downloading it because it uses an ASPX page that handles the document directly inside the navigator.
Would you have any way of getting a link to your document that would preferably look like the one above?
PS: I don't see in your post how the link looks from the Flow side...
Hello again!
It turns out this was more of a Flow problem. I modified the Flow that creates the file so that, rather than creating a URL from the 'path' dynamic data, it just has the simple added step of 'Create Sharing Link' and passed that back to my PowerApps and, by extension, my SharePoint list.
Thank you so much for taking the time to work through this with me!
Glad you could figure it out... 😊
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268