Download file and store location in variable

%3CLINGO-SUB%20id%3D%22lingo-sub-151146%22%20slang%3D%22en-US%22%3EDownload%20file%20and%20store%20location%20in%20variable%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-151146%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20do%20you%20download%20a%20file%20and%20store%20the%20download%20location%20in%20a%20variable%3F%3CBR%20%2F%3ESet(Link1%3BDownload(%E2%80%9C%3CDOWNLOADLINK%3E%E2%80%9D))%20downloads%20the%20file%20but%20the%20variable%20stays%20empty%20(probably%20because%20downloading%20is%20async).%3C%2FDOWNLOADLINK%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPreferably%20I%20would%20like%20to%20use%20a%20gallery%20view%20to%20show%20files%20in%20SharePoint%20with%20a%20download%20and%20an%20open%20button.%20I%20want%20to%20store%20the%20download%20location%20for%20every%20file%20in%20this%20list%20(after%20the%20download%20button%20is%20pressed).%20So%20instead%20of%20a%20single%20variable%20I%20would%20need%20to%20use%20an%20array.%20Or%20is%20it%20possible%20to%20'append'%20a%20variable%20and%20value%20to%20the%20currently%20selected%20item%20in%20the%20gallery%20view..%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-151146%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
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