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 :
Power Apps - Power Apps Pro Dev & ISV
Answered

Download all files at once from gallery.

(3) ShareShare
ReportReport
Posted on by 10
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.
I have the same question (0)
  • Sam_Fawzi Profile Picture
    541 Super User 2025 Season 2 on at
    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,
     
  • Suggested answer
    stampcoin Profile Picture
    4,428 Super User 2025 Season 2 on at
    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.

     
  • PA-03061019-0 Profile Picture
    10 on at
    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
    CA1105 Profile Picture
    513 Super User 2025 Season 2 on at
    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.
  • stampcoin Profile Picture
    4,428 Super User 2025 Season 2 on at
    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
  • PA-03061019-0 Profile Picture
    10 on at
    Download all files at once from gallery.
    @stampcoin I have also tried but its not working for all files.Its downloading only single file.
  • PA-03061019-0 Profile Picture
    10 on at
    Download all files at once from gallery.
    @CA1105 can you share workaround for it.
  • Verified answer
    stampcoin Profile Picture
    4,428 Super User 2025 Season 2 on at
    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
    10 on at
    Download all files at once from gallery.
    @stampcoin Thanks for the workaround its working fine now.
  • CU22100333-0 Profile Picture
    2 on at
    Download all files at once from gallery.
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

Last 30 days Overall leaderboard