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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to create a button...
Power Apps
Suggested Answer

How to create a button when clicked downloads an excel file in SharePoint to local file?

(0) ShareShare
ReportReport
Posted on by
Hi all, 
 
Having trouble with creating a button in PowerApps where when a user clicks it downloads an Excel file (currently located in a SharePoint folder) to a user's local computer file. 
 
Here is my current function:
Download("Excelfilelocation?download=1")
 
The goal here is to write a function where when a button is selected it download the file straight to the users local file. 
Categories:
I have the same question (0)
  • Suggested answer
    WarrenBelz Profile Picture
    153,773 Most Valuable Professional on at
    Assuming you have the file in a SharePoint Library and are displaying the files in a Gallery, put a button/icon in the Gallery and using your Domain and Library names.
    Download($"https://YourDomainName.sharepoint.com/YourLibraryName/_layouts/download.aspx?SourceUrl=https://YourDomainName.sharepoint.com/YourLibraryName/" & ThisItem.'Full Path')
    The file should go into the Downloads folder of the user.
     
    Please ✅ Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • WarrenBelz Profile Picture
    153,773 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please ✅ Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like â™¥
    Visit my blog
    Practical Power Apps    LinkedIn   

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 105 Most Valuable Professional

#2
Haque Profile Picture

Haque 77

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 70

Last 30 days Overall leaderboard