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 Apps
Answered

Thumbnail Gallery

(0) ShareShare
ReportReport
Posted on by 1,265

I have the following Attachments DataCard for collection of photos when employees enter records.  I was attempting to display Thumbnails of the attachments in a gallery directly below the Attachments.  I have reviewed a few internet suggestions but have been unable to get the thumbnail(s) to diplay.  I have tried the following in the Items of the Gallery...

 

LookUp(
'Safety Good Catch Items',
ID=Gallery2).Attachments
)  

 

RJF61_0-1670346257798.png

Any assistance would be appreciated

Categories:
  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    Hi @RJF61 ,

    Put this as the Image property of the control (with your domain)

    "https://yourdomainname.sharepoint.com/_layouts/15/getpreview.ashx?path=" & ThisItem.AbsoluteUri

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)    Visit my blog Practical Power Apps  

  • RJF61 Profile Picture
    1,265 on at

    Hi @WarrenBelz Thanks for the response.

    So  used the following in "red" but did not get an results.

    RJF61_0-1670360898109.png

    I did place this in Image property of the galAttachments (Gallery) - Image 

     

    RJF61_1-1670361118811.png

     

  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    Hi @RJF61 ,

    I am not sure what is incorrect there, but see as below

    WarrenBelz_0-1670362184909.png

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • RJF61 Profile Picture
    1,265 on at

    Hi @WarrenBelz Thanks again for the response.  Not sure what I have set, but I am also unable to delete attachments or select while in the Edit mode of the Form. 

  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    Hi @RJF61 ,
    Looking at your screenshot now, you seem to be missing the leading (and possibly trailing) quotes ". I can assure you it works in a browser (it does not on the mobile app due to URLs needing to be resolved anonymously).

    Your current issue is rather weird - you screen shot shows what appears to be a normal Edit Mode for an attachment control. What happens when you select the X and save the Form ?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

     

  • RJF61 Profile Picture
    1,265 on at

    Hi @WarrenBelz Which X are you referring to?

     

    Also, I am noticing that various fields cannot be edited while the form is in edit mode.

  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    Hi @RJF61 ,

    You post that I am also unable to delete attachments or select while in the Edit mode of the Form - I was referring to the X on the attachment control item to delete it

    WarrenBelz_1-1670375734479.png

    Also what other fields can you not edit (or do they simply not save changes?)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

     

  • RJF61 Profile Picture
    1,265 on at

    Hi @WarrenBelz Thanks for your responses.

    OK...I re-created the form (I assume there was some type of corruption).  At this point I can Edit as expected.  So back to my original need...

    1.  I was trying to use the information from your Blog from 25/02/2021 "Gallery with Images"

         a.  I have my Attachments DataCardValue28

         b.  I then inserted a horizontal gallery below the DataCard (not within the DataCard)

         c.  I was then trying to use "LookUp('Safety Good Catch Items',ID = Gallery1.Selected.ID).Attachments"

         d.  That is where I receive an error

    2.  I do have the following...

    RJF61_1-1670430871406.png

     

  • WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    Hi @RJF61 ,

    Assuming Gallery1 contains a list with attachments, putting this on the Items of a gallery certainly should not error

    LookUp(
     'Safety Good Catch Items',
     ID = Gallery1.Selected.ID
    ).Attachments

    One issue here - the Gallery Items must contain the ID in its contents. What are the Items of the Gallery? You will get the second error on the image if the Items are also erroring.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • RJF61 Profile Picture
    1,265 on at

    Hi @WarrenBelz The Items of the gallery are generally pics that have been taken and then attached to the List item.  What syntax would be needed to collect the attachments associated with the list item (or am I looking at this incorrectly)?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard