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 / Download all files at ...
Power Apps
Unanswered

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.
I have the same question (0)
  • Sam_Fawzi Profile Picture
    750 Super User 2025 Season 2 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,058 Super User 2025 Season 2 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 Super User 2025 Season 2 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,058 Super User 2025 Season 2 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,058 Super User 2025 Season 2 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard