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 / How to create a button...
Power Apps
Unanswered

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)
  • WarrenBelz Profile Picture
    153,372 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,372 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

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 431 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 286 Super User 2025 Season 2

#3
Kalathiya Profile Picture

Kalathiya 258

Last 30 days Overall leaderboard