I have created a Power App to aggregate 5 different SharePoint Document Libraries into one using a Collect. What I want to do is add a checkbox, to the gallery item, and then a button to download all those selected.
I think I am running into an issue since these are all disparate Document Libraries, all of which have different URLs.
On my gallery check boxes OnCheck property:
Collect(varCheckBox, ThisItem)
On my gallery check boxes OnUnCheck property:
Remove(varCheckBox,ThisItem)
On my Download Selected button's OnSelect property:
ForAll(
ShowColumns(
varCheckBox,
'{Link}'
),
Download('{Link}' & "action=view")
);
Clear(varCheckBox);
Set(
varResetCheckBox,
true
)
My use of "& "action=view"" is a workaround that I've been using to force file downloads rather than launching in a browser.
Clicking Download Selected only downloads the first checked box (first item in the varCheckBox collection. How can I modify what I've done to download everything that is selected?