web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Attachment control and...
Power Apps
Answered

Attachment control and PDF viewer

(1) ShareShare
ReportReport
Posted on by 319

All my different items in an equipment list has the ability to carry 10 attachments each.
These are stored in the Dataverse table, on the items row.

 

In my PowerApp I have the AttachmentControl to show the files (jpg/pdf/etc.)

 

Is there a workaround to be able to open the PDF files in the attachment control, inside the app in the PDF-viewer?

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @mrstian89 :

    Do you want to display a PDF file in the attachment control by PDF-viewer?If so,I've made a test for your reference:

    vbofengmsft_0-1636091243481.png

    Note:

    If you click the file in the attachment, the file will be downloaded. Therefore, the only way is to call the Attachments property of the attachments control, find the PDF file in the file list, and get its Value (URL).

    Best Regards,

    Bof

     

  • mrstian89 Profile Picture
    319 on at

    Thanks for responding!
    I am able to make this happen, but when I click on a object in the attachment control, it also prompts me to download the file.

     

    Is there any way to choose a OnSelect for the attachment control? If I choose to open the PDF viewer, then it won't prompt me to download the file?

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @mrstian89 :

    I'm afraid that is not available,unless you add one more list box.for example:
    1\Add a list box(ListBox1) and set it's items property to:

    DataCardValue16.Attachments /*DataCardValue16 is the attachment control*/

    2\Select the PDF file on the list box

    3\Set the PDF viewer's Items property to:

    ListBox1.Selected.Value

    vbofengmsft_0-1636703597053.png

    Best Regards,

    Bof

     

  • Albertax Profile Picture
    111 on at

    Thank you for this solution, it saved my time!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard