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

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,484 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

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