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

Community site session details

Session Id : Znn++EB4+mRVMd8UHWiUdP
Power Apps - Building Power Apps
Unanswered

Download SharePoint list attachments on click of HTML/button control

Like (0) ShareShare
ReportReport
Posted on 9 Dec 2023 11:45:01 by 504

I have a SharePoint list item which stores only single attachments (PPT/PDF).

 

I need to download this attachment on click of HTML text/ button control. I tried using Download function but it opens in web view.

 

Download(First(glbvar.Attachments)).AbsoluteUri

 

May i know how to achieve this?

Categories:
  • ANB Profile Picture
    7,131 Super User 2025 Season 2 on 09 Dec 2023 at 12:46:00
    Re: Download SharePoint list attachments on click of HTML/button control

    Hi @Iantaylor2050, Try this 

     

    Download("https://<site URL>/_layouts/download.aspx?SourceUrl=/sites/workshop/Lists/LISTNAME/Attachments/" & ID OF THE SPLISTITEM & "/" & FILENAMEWITHEXTENSION)

     

    <site URL>: https://domainname.sharepoint.com/sites/SiteName

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ 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 giving it Thumbs up.👍

    Thanks,
    ANB


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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete