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
Dual Super User

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
Dual Super User

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.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

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 Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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