Skip to main content

Notifications

Power Apps - Power Apps Experimental Features
Suggested answer

Cannot View PDF File Retrieved to Power Apps

(0) ShareShare
ReportReport
Posted on by 4,515
I have a Power Apps in which I am creating, saving, and retrieving PDF documents.


Everything is working except the retrieved view of the PDF file. All I get is a black
box with an https error message. In the library the PDF file opens fine.

What am I missing?
 

My SharePoint Library where the PDF file is saved -
 

 
In my Power Apps Gallery is an icon that is used as a button to retrieve and view
the PDF file -
 
 
The formula in the Gallery icon / button above, that retrieves the pdf file, is -
 
Set(varWeeklyReportViewerVisible,true);
Set(varWeeklyReport, LookUp('WR_Weekly _Report_Library',
    
Property_Location = Title2_4.Text))
 
What I see in the PDF View when the file is returned to Power Apps.
 
  • Suggested answer
    Pstork1 Profile Picture
    Pstork1 64,722 on at
    Cannot View PDF File Retrieved to Power Apps
    The PDF viewer can't display files retrieved directly from an authenticated source like SharePoint. Typically they are processed through Power Automate to turn them into Base64 encoded blobs which can then be displayed in the PDF viewer.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard

Featured topics