web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to allow instant d...
Power Apps
Unanswered

How to allow instant download pdf files stored in SPO from canvas app?

(0) ShareShare
ReportReport
Posted on by

Hi Folks,

 

I have a button in my canvas app which is part of a gallery. The gallery holds items from a collection (SPO list). The button holds the attachment of item. It displays the attachment name and onSelect should download it. 

 

rbn_nue_0-1659704581410.pngrbn_nue_1-1659704606953.png

 

This works fine for word or excel documents like .doc, .xlsx etc. But when a pdf file is present, instead of downloading, it opens in browser with SharePoint URI shown in the URL section.

 

rbn_nue_2-1659704819083.png

 

 

Could anyone help me to force download the pdf file without directly opening from SPO exposing the backend URL, or any method to encrypt the URL?

 

Thank you. 

Categories:
I have the same question (0)
  • Verified answer
    rbn_nue Profile Picture
    on at

    I was able to solve this issue by referring to below post:

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Downloading-files-from-Sharepoint-in-PowerApp/td-p/808012

     

    Thanks @v-qiaqi-msft 

     

    Although in my case I was storing attachments in list items and was able to use the absolute URI of the attachment (SourceUrl=" & ThisItem.AbsoluteUri) which download the file directly. 

     

    Cheers. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard