Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Download all files at once from gallery.

Like (3) ShareShare
ReportReport
Posted on 3 Jun 2025 10:27:36 by 8
I am having a gallery which has documents from document library.It is possible to download single document with following formula 
Download($"https://xyz.sharepoint.com/sites/abc/_layouts/download.aspx?SourceUrl=https://xyz.sharepoint.com/sites/abc/{ThisItem.'Full Path'}")
on OnSelect property of button 
But I want to download all documents at once or download zip of those documents.
  • PA-03061019-0 Profile Picture
    8 on 09 Jun 2025 at 06:34:17
    Download all files at once from gallery.
    @stampcoin Thanks for the workaround its working fine now.
  • Verified answer
    stampcoin Profile Picture
    2,511 on 06 Jun 2025 at 17:51:06
    Download all files at once from gallery.
    That's strange, since if one can be downloaded, all can be downloaded.
    I have nothing special in the app....
    see my pic below:
     
     
     
     
  • PA-03061019-0 Profile Picture
    8 on 06 Jun 2025 at 12:41:01
    Download all files at once from gallery.
    @CA1105 can you share workaround for it.
  • PA-03061019-0 Profile Picture
    8 on 06 Jun 2025 at 12:39:11
    Download all files at once from gallery.
    @stampcoin I have also tried but its not working for all files.Its downloading only single file.
  • stampcoin Profile Picture
    2,511 on 06 Jun 2025 at 07:36:02
    Download all files at once from gallery.
    It replies on your checkbox. when the checkbox selected, it will download one by one.
    I tested it, that's why I posted here.
     
    Checkbox1.Value = true
  • Suggested answer
    CA1105 Profile Picture
    513 on 06 Jun 2025 at 05:56:26
    Download all files at once from gallery.
     
    For creating a zip file you'll be needing the Power Automate which call an Azure Function. Azure function can create zip file and handover to Power Automate for download.
  • PA-03061019-0 Profile Picture
    8 on 06 Jun 2025 at 05:38:59
    Download all files at once from gallery.
    @stampcoin I have tried it.It only downloads single file which is present first in gallery.
  • Suggested answer
    stampcoin Profile Picture
    2,511 on 04 Jun 2025 at 18:18:14
    Download all files at once from gallery.
    Assume that you have the files in the same folder ( Documents), 
    Below is kind of work around. 
    ForAll(
        // Only loop through the items where chkSelect is checked
        Filter(Gallery1.AllItems, Checkbox1.Value = true),
        
        // For each selected record, fire Download(...)
        Download(
            "https://xyz.sharepoint.com/sites/abc/_layouts/15/download.aspx?" &
            "SourceUrl=https://xyz.sharepoint.com/sites/abc/" &
            ThisRecord.'Full Path'
        )
    )
     

    Enjoy Power Platform and have a great day đźš€ |  My LinkedIn

    If the answer helps, please consider 👍, Thanks.

     
  • Sam_Fawzi Profile Picture
    488 Super User 2025 Season 1 on 04 Jun 2025 at 16:04:55
    Download all files at once from gallery.
    To download all documents from a gallery in Power Apps, you cannot directly create a zip file or download multiple files at once using a single formula. However, you can work around this limitation by creating a flow in Power Automate that zips the files and then triggers this flow from Power Apps. Please note that creating a zip file may require the use of a third-party connector.
     
    Cheers,
     

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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Loading started