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 / View SharePoint List I...
Power Apps
Answered

View SharePoint List Images in a Gallery

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

 

I have a sharepoint list that the users fill out all the fields and also upload images using an attachment control. I've then got a search page on my app so the users can search for their raised ticket but i'd like to show a gallery that also has the images that was uploaded, what do I need to set the formula to please? 

 

Thanks in advance!

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @Dave-ITMan 

     

    If you have a single attachment you can use the following formula to add the attachment image as image in the gallery.

     

    First(ThisItem.Attachments).AbsoluteUri

     

    Sundeep_Malik_0-1669890264870.png

     

  • Dave-ITMan Profile Picture
    on at

    Hi @Sundeep_Malik ,

     

    Thanks for your reply, some tickets have one image but other tickets have several images, could be 10 on some occasions? 

     

    Regards

  • TikshaAggarwal Profile Picture
    on at

    Hi @Anonymous ,
    If you want to show multiple attachments, what you can simply do is on Select of gallery icon collect attachments in Collection. And add that collection to different gallery.

     

    ClearCollect(myAttachments,ThisItem.Attachments)

     

    TikshaAggarwal_0-1669892045574.png

     

  • Dave-ITMan Profile Picture
    on at

    Hi @TikshaAggarwal ,

     

    Thanks, my current search gallery has the below in it's OnSelect

    Select(Parent)&Navigate (ViewImages)

     

    Can you advise how I should adapt that and then what I should put in my 2nd gallery to be able to view the images of the selected item? 

     

    Regards

  • Verified answer
    TikshaAggarwal Profile Picture
    on at

    On the first screen put this code onSelect of Icon 

    ClearCollect(myAttachments,ThisItem.Attachments);
    Navigate(ViewImages)

    Now after navigating to ViewImages Screen. Add collection myAttachments to the Items property of a gallery.

    TikshaAggarwal_0-1669895452668.png


    TikshaAggarwal_1-1669895475152.png

     

    Please click Accept as solution if this helped you solve your issue. This will help others find it more readily. It also closes the item. Please consider giving it Thumbs Up.

  • Dave-ITMan Profile Picture
    on at

    Hi @TikshaAggarwal ,

     

    That's great thank you, is there a way that when you click on each image, it can then go full screen or at least bigger? 

     

    Thanks for your help!

  • TikshaAggarwal Profile Picture
    on at

    Yes this is possible @Dave-ITMan. OnSelect of gallery set a variable

    Set(currentImage, ThisItem)

     

    Now you may use this variable on Next Page. Add Image Control here. Set Image property to this:

    currentImage.AbsoluteUri


    Hope this helps.

    Please click Accept as solution if this helped you solve your issue. This will help others find it more readily. It also closes the item. Please consider giving it Thumbs Up.

  • Dave-ITMan Profile Picture
    on at

    Hi @TikshaAggarwal 

     

    Thanks, that works but it doesn't take them to the next page where the image is larger, can it do it on the same page at all?

     

    Regards

  • TikshaAggarwal Profile Picture
    on at

    @Dave-ITMan, I guess you haven't added Navigate(ScreenName); OnSelect of gallery item. You can adjust image size as well by changing height and width of image control 

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard