Showing results for 
Search instead for 
Did you mean: 
Post Prodigy
Post Prodigy

How to download file from sharepoint document and View CSV File in PDF viewer ?


I'm trying to use the downloadn functtion and pass the link item in the Download () fucntion to download the file but seems like the file is always opening in new page, is there any option I can download it from powerapps with Onselect of button. 

Also Is it possible to show the CSV file in PDF viewer? I know it is possible to show docx, xlsx and pdf or png as per one of the experts video by  @RezaDorrani, it seems not working for CSV i tried to turn and twist the formula and also use flow to achieve this but seems like not working for me. 

For download I tried below fucntion- but show Access Denied 


I also tried to pass link as below - but only opens the file in new tab.

Download(ThisItem.'Link to item')

Any help form all experts is helpful and apprciated. 


Super User
Super User

Can you download file from SharePoint directly? Because many organization have this policy that restrict user from downloading anything from SharePoint. Even my company has the same. 



Was I helpful? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. It will help other users to find it faster.

follow me on Twitter @zmansuri123,
connect with me on LinkedIn from Here

Helpful resources

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,606)