Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Suggested answer

Download all files at once from gallery.

(0) ShareShare
ReportReport
Posted on by
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.
  • Suggested answer
    stampcoin Profile Picture
    2,133 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.

     
  • SamFawzi-SmartSolutions Profile Picture
    299 Super User 2025 Season 1 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,
     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 >