cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Spawn10 Helper I
Helper I

How can I get to download pdf files that are housed in a SharePoint library?

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?

2 REPLIES 2
Highlighted
Super User
Super User

Re: How can I get to download pdf files that are housed in a SharePoint library?

There is not a Download a file in PowerApps. Sorry. You can use Launch(URLtoPDF) and then that will launch them into their default browser. 

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training
OneThing Continued Contributor
Continued Contributor

Re: How can I get to download pdf files that are housed in a SharePoint library?

Hi @Spawn10,

 

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

Nicky

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (7,915)