Download file and store location in variable

Highlighted
Occasional Contributor

How do you download a file and store the download location in a variable?
Set(Link1;Download(“<downloadlink>”)) downloads the file but the variable stays empty (probably because downloading is async).

 

Preferably I would like to use a gallery view to show files in SharePoint with a download and an open button. I want to store the download location for every file in this list (after the download button is pressed). So instead of a single variable I would need to use an array. Or is it possible to 'append' a variable and value to the currently selected item in the gallery view..?

 

 

0 Replies