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 / Gallery from Attacheme...
Power Apps
Unanswered

Gallery from Attachement in share point list

(1) ShareShare
ReportReport
Posted on by 32

Hi

 

I cant find a solution to what in my head is rather simple. I want to add a gallery that shows thumbnails for Images that  have already been added to a SharePoint list.

 

I have one Screen that adds customer information and the attachments.

 

The other screen is a Review screen where i would like to only show the attachments added from that record.

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @dfox1787 

     

    Add a Gallery and use your SharePoint List as data source.

    For the Images add that as a field of the Gallery.

     

    What format is your Image from the SharePoint List represented as though?

  • dfox1787 Profile Picture
    32 on at

    The images are jpgs. sorry could you show me an example on how to add the attachments and thumbnails in the gallery.  Is it an item i need to add?

     

     

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @dfox1787 

     

    In your case

     

    1. Add a Blank Vertical Gallery
    2. Set DataSource to SP List
    3. Click Gallery
    4. Click Pencil Icon (to go in the Gallery)
    5. Click Insert
    6. Click Media
    7. Click Image
    8. The Image should be repeated multiple times for each SharePoint List record
    9. In Image go to Image and say ThisItem.YourImageColumnNameFromSharePoint
    10. This probably should accomplish it

     

  • dfox1787 Profile Picture
    32 on at

    thank you. i just get a error when trying that see screen shots

    Capture3.PNG
    Capture4.PNG
  • dfox1787 Profile Picture
    32 on at

    this isn't working do you have any suggestions?

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @dfox1787 

     

    Oh it's in an Attachment. Thought it was a Picture column.

     

    Could still work.

    Try something like First(ThisItem.Attachments) or First(ThisItem.Attachments).Something

     

    You need to try and get the first attachment (one record) - let's presume it's always the first one hence use of First - then you need the image content from there, it may be possible using something along the lines of the above. 

     

    If it has to be attachment it will be a little tricky to fetch it but it may still be possible.

     

     

     

     

     

  • dfox1787 Profile Picture
    32 on at

    this code brought the image in

     

    First(ThisItem.Attachments).Value

     

    i will test this further.

  • dfox1787 Profile Picture
    32 on at

    this code only displays one attachment. if i add more than one attachment it does not display them.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    @dfox1787 

    Attachment is a sub-table column, so if you want to show all attachment images, try to add a sub-gallery into main-gallery.

    Set Items property of sub-gallery: 

    ThisItem.Attachments

    Snipaste_2020-01-16_16-25-16.png

    Sik

     

  • dfox1787 Profile Picture
    32 on at

    Ive tried that and it does not dis[play any of the attachments.

     

     

    doesnnot.PNG

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard