cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
madlyons
Regular Visitor

Selecting Item and using PDF Viewer to Look up Selected Item

Use: I am making a PowerApp for training for new associates.

In a Sharepoint List named Docs I have one name to one attachment in PDF form. 

madlyons_0-1615295565724.png

 In Power Apps I have a home screen where each document is link to a Next arrow.

madlyons_1-1615295625258.png

The arrow is coded as Navigate(PullUpScreen) & Set(DocsVal, "Stop Call Wait")

 

The PullUpScreen has a gallery named DocsGallery connected to the Docs data source in SharePoint coded 

madlyons_2-1615295701423.png

The PDFviewer is coded as LookUp(DocsGallery.Selected.Attachments.Value, DisplayName=DisplayName).Value

 

but for some reason the documents will not pull up from the SharePoint list. What am I doing wrong?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

One of the limitations on the PDF viewer is that it can't display documents stored in systems that require authentication like SharePoint.  To make the PDF viewer work with an authenticated document you need to use Flow to retrieve the document and render the contents and then pass it to the PDF viewer.  You can view a video walkthrough of this process here:

Real World PowerApps - How to view SharePoint PDF'... - Power Platform Community (microsoft.com)



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Pstork1
Dual Super User III
Dual Super User III

One of the limitations on the PDF viewer is that it can't display documents stored in systems that require authentication like SharePoint.  To make the PDF viewer work with an authenticated document you need to use Flow to retrieve the document and render the contents and then pass it to the PDF viewer.  You can view a video walkthrough of this process here:

Real World PowerApps - How to view SharePoint PDF'... - Power Platform Community (microsoft.com)



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Top Solution Authors
Top Kudoed Authors
Users online (63,416)