Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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!

  • TikshaAggarwal Profile Picture
    158 on at
    Re: View SharePoint List Images in a Gallery

    @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 

  • Dave-ITMan Profile Picture
    on at
    Re: View SharePoint List Images in a Gallery

    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
    158 on at
    Re: View SharePoint List Images in a Gallery

    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
    Re: View SharePoint List Images in a Gallery

    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!

  • Verified answer
    TikshaAggarwal Profile Picture
    158 on at
    Re: View SharePoint List Images in a Gallery

    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
    Re: View SharePoint List Images in a Gallery

    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

  • TikshaAggarwal Profile Picture
    158 on at
    Re: View SharePoint List Images in a Gallery

    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
    Re: View SharePoint List Images in a Gallery

    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

  • Sundeep_Malik Profile Picture
    6,480 on at
    Re: View SharePoint List Images in a Gallery

    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

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard