cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
akorejwa
Level: Powered On

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
Community Support Team
Community Support Team

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
Community Support Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,439)