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 Apps
Answered

PowerApps Download

(0) ShareShare
ReportReport
Posted on by 99

Hi, I have the problem with Download command:

 

In my app I have inserted the icon to Gallery (items from SharePoint document library) with "Download(ThisItem.'{Link}')" statement in icon.OnSelect property.

- In the bowser PoweApp it always opens the document (instead  of download) in new browser folder.

- In PoweApp for Windows it always start download window (which is good...) but the extension of downloaded files is changed to .html

 

Thank You for advise

 

 

Categories:
  • rimatos Profile Picture
    Microsoft Employee on at

    Hi @EmilBSP,

     

    Which Link are you providing to the Download function? If you are using the Link to item, this link is relative to a container that has the file. As such you are pointing to the container path and not the File path itself (this may depend upon the configuration at the content source and the browser being used).

     

    You could try inserting the following: 

     

    "http://<site URL>/_layouts/download.aspx?SourceUrl=/sites/sitename/library/folder/fileName.ext 

     

    In this situation you are introducing the "download.aspx" in the URI parameters to download the file, and sending in the end the path to the file.

     

     

    Hope this helps!

     

    Regards,

    Ricardo

  • EmilBSP Profile Picture
    99 on at

    Hi @rimatos

     

    thank you for response,

     

    trying to introduce "download.aspx" in my path in Download statement:

    example:

    Download("<site url>/_layouts/download.aspx?SourceUrl=/sites/site/library/Folder/image.png")

    - but calling is resulting to some "Access denied ..." messages

     

    According to https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-param , :

    "The Download function downloads a file from the web to the local device. "

    - instead of declration, my download always opened the file in  next browser folder. (The "Launch" function I going to the same result.)

     

    In the application, I stared the function on OnSelect Icon property : Download(ThisItem.'Link to item') (SharePoint list item).

     

    When I have tested it in PowerApp window (not in the browser), the same function started uploading window (to choose download file destination) , BUT the extention of downloaded file was setup to ".html" with no chance to change it

     

    Best Regards,

    Emil

     

     

  • Verified answer
    rimatos Profile Picture
    Microsoft Employee on at

    Hi @EmilBSP,

     

    Thanks for getting back!

     

    I was also able to replicate that on my side. As such, I believe the best approach now would be to open a ticket with Microsoft Support through https://admin.powerplatform.microsoft.com/support, so this behavior can be investigated in more depth.

     

    As for the access denied in my case the URL I provided was something similar to this:

    image.png

     

    I have my file stored in a SharePoint library, hence trying to access it like this. Try and change the file to a library you create and see if you are able to use this workaround in the meantime.

     

    Hope this helps!

     

    Regards,

    Ricardo

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard