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 Platform Community / Forums / Power Apps / Download all files at ...
Power Apps
Answered

Download all files at once from gallery.

(3) ShareShare
ReportReport
Posted on by 22
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.
Gallery.PNG
I have the same question (0)
  • Sam_Fawzi Profile Picture
    904 Super User 2026 Season 1 on at
    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,
     
  • Suggested answer
    stampcoin Profile Picture
    5,158 Super User 2026 Season 1 on at
    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.

     
  • PA-03061019-0 Profile Picture
    22 on at
    @stampcoin I have tried it.It only downloads single file which is present first in gallery.
  • Suggested answer
    CA1105 Profile Picture
    545 Moderator on at
     
    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.
  • stampcoin Profile Picture
    5,158 Super User 2026 Season 1 on at
    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
  • PA-03061019-0 Profile Picture
    22 on at
    @stampcoin I have also tried but its not working for all files.Its downloading only single file.
  • PA-03061019-0 Profile Picture
    22 on at
    @CA1105 can you share workaround for it.
  • Verified answer
    stampcoin Profile Picture
    5,158 Super User 2026 Season 1 on at
    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
    22 on at
    @stampcoin Thanks for the workaround its working fine now.
  • CU22100333-0 Profile Picture
    2 on at
    After allowing the pop-up and redirects for powerapps, all files can be downloaded; otherwise, only the first file can be downloaded.
     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard