cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

How to use pdf viewer to view a pdf attachment in a list

I have a sharepoint list which may have multiple attachments associated with each item. Among these attachments, there will *always* be one for each item which will be useful for people in the field to view. I created a screen which displays some meta data and all attachments associated with the list item. However, I would like the user to either be able to select one of these and view it, or simply view the pdf that will be useful to people in the field (selection of the correct pdf attachment could be controlled by the name of the pdf perhaps?). There does not seem to be a 'onSelect' option for the attachments in the form that displays them.

How can I use pdfViewer to view a pdf attached to an item in a list?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: How to use pdf viewer to view a pdf attachment in a list

Hi @akorejwa ,

I've afraid it's not supported to make this currently in PowerApps.

For now, you could only set the PDF viewer's Document to the PDF's link directly.Server redirects or HTML views of the document aren't supported. For example, set the Document to Gallery2.Selected.AbsoluteUri, it will not display PDF successsfully.

Here's a doc about PDF viewer for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-pdf-viewer

As an alternative way, I suggest you use the Lunch function.

Set the gallery's arrow's OnSelect: Launch(ThisItem.AbsoluteUri)

Then, if user click on the arrow, it will open PDF file in webpage automatically.742.png

 

 

Best regards,

Community Support Team _ Phoebe Liu

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: How to use pdf viewer to view a pdf attachment in a list

Hi @akorejwa ,

I've afraid it's not supported to make this currently in PowerApps.

For now, you could only set the PDF viewer's Document to the PDF's link directly.Server redirects or HTML views of the document aren't supported. For example, set the Document to Gallery2.Selected.AbsoluteUri, it will not display PDF successsfully.

Here's a doc about PDF viewer for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-pdf-viewer

As an alternative way, I suggest you use the Lunch function.

Set the gallery's arrow's OnSelect: Launch(ThisItem.AbsoluteUri)

Then, if user click on the arrow, it will open PDF file in webpage automatically.742.png

 

 

Best regards,

Community Support Team _ Phoebe Liu

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,479)