web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Launch("URL") Download...
Power Apps
Unanswered

Launch("URL") Downloading Documents

(1) ShareShare
ReportReport
Posted on by 56

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!

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @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."

  • Schumanar Profile Picture
    56 on at

    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. 

  • R3dKap Profile Picture
    1,594 on at

    Hi @Schumanar,

    Could you please this option in the Advanced settings of your document library?

    Image 1.png

    It might help us figure out your issue...

  • Schumanar Profile Picture
    56 on at

    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).

  • R3dKap Profile Picture
    1,594 on at

    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?

  • Schumanar Profile Picture
    56 on at

    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:

  • R3dKap Profile Picture
    1,594 on at

    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...

  • Schumanar Profile Picture
    56 on at

    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!

  • R3dKap Profile Picture
    1,594 on at

    Glad you could figure it out... 😊

  • GS-03091657-0 Profile Picture
    9 on at
    ​​​​​​​​​​​​​​whoops forgot to tick the proposed solution checkbox... sorry

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard