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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do you display att...
Power Apps
Unanswered

How do you display attachment in gallery?

(0) ShareShare
ReportReport
Posted on by 93

Capture.PNG

i have sharepoint list with attachment column , anyone know how do i make the attachment show up?

there is no option in layout 

Categories:
I have the same question (0)
  • Verified answer
    Edwin-Abdalian Profile Picture
    641 on at

    First let's start with this fact that you can have multiple files attached to one SharePoint record. because of this, you cannot bind the attachments to a single image control. Think about showing a table of attachments in one control, it's not possible. but certainly you can show the attachment(s) of a selected record, in a new gallery. Follow my example below:

    1- Create one gallery for your SharePoint list, and create another gallery for your SharePointt attachments. align these two galleries side by side, or however you like to design your form.

    2- Change the Item property of your second gallery to firstGalery.Selected.Attachments

    attachements in gallery.PNG

    ------------------------------------------------------

    Please Accept as Solution if this post answered your question so other members can find it. If you found this post helpful consider giving my post a Thumbs Up!

     

  • Verified answer
    v-siky-msft Profile Picture
    on at

    Hi @warsongg00 ,

     

    Which kind of attachment did you store?

    How many attachments did you store in each item?

     

    It can be known that the type of Attachments is table, because multiple attachments can be stored in it.

    If you have multiple attachments in each item, @Edwin-Abdalian 's work around is good enough to display all attachments.

    If you just want to display the first attachments or each item only have single attachment, you can modify the image property as below:

    First(ThisItem.Attachments).AbsoluteUri

    please refer to the following image.

    Annotation 2019-10-14 115957.png

    Best regards,

    Sik

  • Jreutbier Profile Picture
    10 on at

    @warsongg00, @v-siky-msft, @Edwin-Abdalian I have found that absoluteuri doesn't work on mobile and using .value loads very slowly. Did you have a similar experience?

  • Alberto_Coppola Profile Picture
    8 on at

    This line in the  Image property of the gallery worked fine for me:

     

    First(ThisItem.Attachments).Value

     

    (putting .AbsoluteUri instead of .Value makes images invisibile in the gallery when the app is displayed on a mobile)

  • LeVentriloque Profile Picture
    16 on at

    Hi, Alberto

     

    This code was working well until power apps version 3.22091.27 but not now.

    The french version is Last(ThisItem.'{Attachments}').Value

    If this code still working for you, can you tell me which version are you using in which country ? 

    You can see it in Parameter menu then support (assistance in french)

    LeVentriloque_0-1666358803962.png

    Regards

    Seb

  • Alberto_Coppola Profile Picture
    8 on at

    Hi @LeVentriloque I'm currently using the 3.22102.32 versione web app

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard