I have a canvas app with a screen that shows a list of files associated with the data currently being viewed. Those files are stored in a SharePoint library that the app user does not have access to. In order to view the file list, upload additional files, or delete files, the app sends a request to a Power Automate flow, which then uses an HTTP action to call another flow. This second flow then performs the requested CRUD operations.
I have the "create," "update," and "delete" parts of CRUD working fine, but not the "read" part. On the screen, there is a gallery in which each item is a file in the list. In each item is a button that should allow the user to download the respective file. I can build a pair of flows that will read and send the requested file data to PowerApps, but I can't find a way to then have PowerApps save the file to the user's default download folder (or any folder). Once my flow sends the file data to PowerApps, how do I instruct PowerApps to save that file to the user's computer?
I have looked into the Download() function, but I don't think this will work, because I need to have a URL that is accessible to the user. Due to security reasons, the SharePoint library containing the files cannot be made directly accessible to the users, which is why I'm using a set of flows to accomplish this. I want PowerApps to save the file that it receives from Power Automate directly.
Hi @zmorek
Thank you for this suggestion. Although is there anyway we can pass the actual content of file from power automate to power apps and let the user download it (This will skip the steps of storing a copy elsewhere).
Is this possible?
Thank you.
Thank you @zmorek . I found a way how to do that. This video was very helpful:
https://www.youtube.com/watch?v=QTbVMu6DIfQ&list=PLK4GUAjzwV6FyI0Jh9gHuYBrz4P3e9R6Z&index=40&t=1719s
You could consider something like:
With this you'd probably need to consider some Flow to automatically purge the "temporary" files it creates.
Hi @Anonymous, have you found a solution to your problem yet? I have such a scenario and I could not find a way to do it
Hi, @JoaoN.
Sorry for the delay; I was pulled away from this for several days.
Unfortunately, while that video is very helpful for downloading a file from OneDrive, it doesn't address how to download a file from SharePoint. The problem is, his method requires the file to be made available to everyone via a link. However, the file in my SharePoint library needs to remain secured, and accessible only via PowerApps/Power Automate. Ideally, the event would follow something like this...
The only real step that I cannot figure out here is step #5. I can build a flow that does return the file metadata and binary content to PowerApps, but I can't figure out how to have PowerApps save that incoming data to disk.
Did you try to use the Launch function?
I do not know if is that your purpose, but Daniel Christian talks about downloading CSV file from a Filtered Gallery on this video. Maybe it can be useful to you:
https://www.youtube.com/watch?v=QTbVMu6DIfQ&list=PLK4GUAjzwV6FyI0Jh9gHuYBrz4P3e9R6Z&index=38&t=1719s
WarrenBelz
146,731
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,077
Most Valuable Professional