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 / Showing attachments fr...
Power Apps
Answered

Showing attachments from a Sharepoint List

(0) ShareShare
ReportReport
Posted on by 37

This may seem like something simple but I can not get this to work.

I simply want to show the attachment in the gallery.  My data is coming from a Sharepoint list.

I want 

Name, Title and then the attachment which will be a PDF I don't need to show a "image" of the attachment...there are tons of tutorials on how to do that I just need to show the attachment.  There won't be any "detailed screens.  This is a simple find the person and get the information about the screen.  I am mainly wantiPowerApp.PNGng the search function of PowerApps here.

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,515 Most Valuable Professional on at

    It looks like you are trying to display it in a textbox.  The problem is that attachments are a collection.  There may be no attachment, or one, or multiple attachments. I think you are trying to progam it like there would always only be one. If you wanted to show just the first filename in the attachments use this

    First(ThisItem.Attachments).DisplayName

    otherwise you'll need to add some kind of control that can show a collection of items.

  • jeckard Profile Picture
    37 on at

    That worked however I can't click on it and get it to download the attachment. 

  • Pstork1 Profile Picture
    69,515 Most Valuable Professional on at

    To click on it and download the attachment you'll need to use something other than a Textbox. Probably something like an HTML control, but I'm not sure how you would bind the value to a link in that control. 

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @jeckard 

     

    Add a gallery within this gallery and associated its Items property with ThisItem.Attachments

     

    The within gallery use ThisItem.displayname and other properties to show data

    To download add a button within this sub gallery and use Launch(ThisItem.AbsoluteUri)

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • jeckard Profile Picture
    37 on at

    Reza

    I am not understanding what you mean Add a gallery within this gallery and associated its Items property with ThisItem.Attachments.

     

    Why can't I just do Launcht (ThisItem.Attachments.AbsoluteUri) from the button?

  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @jeckard 

     

    Because attachments is a collection  (one can upload more than 1 attahments)

     

    if you are sure that users wont upload more than 1 attachment per list item

     

    then just add a button and use Launch(First(ThisItem.Attachments).AbsoluteUri)

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Using only the First function the attachment is shown, only on my pc not on the phone. using LAUNCH does not show anything.

    Duda.jpg
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Small  workaround,   on the Thumbnail card,  add  a Label   example  URLattachment.Text = First(ThisItem.Attachments).AbsoluteUri,   then  add a  button   OnSelect =  Launch(URLattachment) , and that did the trick for me   ,  for  some reason I got stuck there too.   De nada 😄  saludos desde Regiolandia !

    serescro_0-1628872699685.png

     

  • Kiki1 Profile Picture
    30 on at

    Thanks so much! This worked for me

  • medidum Profile Picture
    7 on at

    serescro! eres un salvador! me funciono a mi tambien, solo que el PDF viewer no me lo muestra, sin embargo si me lleva al link del pdf!

     

    muchas gracias desde otra Regia! ❤ MTY

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 387

#3
timl Profile Picture

timl 344 Super User 2026 Season 1

Last 30 days Overall leaderboard