I am new to PowerApps. I have a requirement to view and download files (pdfs) from a SharePoint Document Library. So far, I have created a gallery that is diplsying the content of the files in the library. I want to add a button to each entry that will allow the users to download the files...as in the screenshot attached.
I am clueless on how to use the 'Download" function to get the file from the SharePoint library. Or is there a better way to set this up, so that the users can download the files from SharePoint?
There are a couple of work arounds for sharepoint just now but the bottom line is that the PowerApp tries to connect to sharepoint anonymously and so sharepoint will block the attempt. you can get around this in 2 ways but none are particularly easy.
If the Files are held as attachments in a sharepoint list there is: https://wonderlaura.com/2018/08/30/powerapps-pdf-viewer/
and if they are in a Document Library you can use Flow: http://www.cleverworkarounds.com/2017/09/29/its-not-a-proxy-its-a-floxy-a-way-to-display-sharepoint-...
I hope this helps