cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver II
Resolver II

Download multiple files from gallery

Hello Microsoft Team,

 

i have posted this below comment two months ago and i have not recieved any solution or comment, well shall consider the below question is still under progress.

 

Perhaps i have received the work around but i have used the workaround for time being, in fact i have posted the idea on PowerApps too.

 

"Is it possible to download multiple files within the gallery, in my case i have gallery which has a document library from Sharepoint.

 

And i have added the checkbox controller to the gallery which are "Select All" for Multiple files(10+ or more) and Select the files which are needed(2 or 3 out of 10), so that when needed user can select the multiple documents using checkbox and download in zip file or normal download but How can this be accomplished? However i can dowload or launch the single file at a time."

 

Workaround was from support team:

 

The OnSelect property of the Download button control set to following formula:

Download(Substitute(First(Split(First(Filter(Gallery1.AllItems,Checkbox1.Value=true)).'{Link}',"?")).Result,"%20"," "))

If you want to dowload or launch the single file at a time, please take a try to set OnSelect property of the Download button to following formula:

Download(Substitute(First(Split(First(Filter(Gallery1.AllItems,Checkbox1.Value=true)).'{Link}',"?")).Result,"%20"," "));Launch(First(Filter(Gall

 

But it would be more helpful if the multiple download function was solved.

 

Thanks in advance and Appreciated !

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support
Community Support

Hi @Nikhil2,

 

Do you want to download multiple files once time from your Gallery control?

 

I found that you have posted same thread before within this forum as below:

https://powerusers.microsoft.com/t5/General-Discussion/Download-Multiple-Documents-from-Gallery-Usin...

 

As an alternative solution, if you want to download multiple files once time from your Gallery control, please take a try with the following workaround:3.JPG

 

 

Set the OnSelect property of the Button control to following formula:

ForAll(
Filter(Gallery1.AllItems,Checkbox1.Value=true),
Download(Substitute(First(Split('{Link}',"?")).Result,"%20"," "))
)

More details about the ForAll function in PowerApps, please check the following article:

ForAll function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Resolver II
Resolver II

Hello Kris,

 

Perfect, This is the one which i was looking from all these days and i have submitted the idea for this. Thank you for showing the workaround.

 

Thanks and Regards,

Nikhil

View solution in original post

12 REPLIES 12
Community Support
Community Support

Hi @Nikhil2,

 

Do you want to download multiple files once time from your Gallery control?

 

I found that you have posted same thread before within this forum as below:

https://powerusers.microsoft.com/t5/General-Discussion/Download-Multiple-Documents-from-Gallery-Usin...

 

As an alternative solution, if you want to download multiple files once time from your Gallery control, please take a try with the following workaround:3.JPG

 

 

Set the OnSelect property of the Button control to following formula:

ForAll(
Filter(Gallery1.AllItems,Checkbox1.Value=true),
Download(Substitute(First(Split('{Link}',"?")).Result,"%20"," "))
)

More details about the ForAll function in PowerApps, please check the following article:

ForAll function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Resolver II
Resolver II

Hello Kris,

 

Perfect, This is the one which i was looking from all these days and i have submitted the idea for this. Thank you for showing the workaround.

 

Thanks and Regards,

Nikhil

View solution in original post

Resolver II
Resolver II

Hello Kris, 

 

Apologies for the inconvience.

 

I have forgotten to ask this question in the main stream. Multiple download is working fine, but is it possible download those files as Zip?

 

Thanks in advance!

Best i can tell there is no way to create a Zip file with PowerApps or Flow.

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training

Then is there any way or can we download in bulk?

Does the ForAll code above work? Seems like it should to me.

 

Thanks

 


Shane

 

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training

It is working and i am using the same code to download multiple files, i have couple of option on my app.

 

1. Download which it helps the user to download one file at a time(Click download, Click Download).

2. Second is above ForAll Function user clicks on checkbox press button and download all files which are selected.

 

But instead of downloading all files as one after the other or just open file by file, i am looking to download in Zip(Which is not an option) or in a folder.

 

Unfortunately, Now the ForAll function is not working at the moment previous day when i selected multiple checkboxes and start to download it was totally working fine but now its a disaster. It is not working it is downloading only one file which is first file of the gallery item.

Anonymous
Not applicable

Hi ,

 

I want to download the all gallery items in excel

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,982)