My Gallery gallery1 is having SharePoint list as datasource. Gallery items can have several text values and one or more image attachments. I would like to place few text columns and image attachments of selected gallery item on HTMLText Control. Text values from gallery selected item I was able to figure out. But I couldnt figure out to display image attachments coming from selected gallery item on my HTML text control. Is it possible with HTMLText Control?
Hi @RameshMukka ,If you want to Display Image in the gallery or Other type.
You can try below. I am displaying the attachment Image in the Gallery.
First(ThisItem.Attachments.AbsoluteUri).AbsoluteUri
Thanks,
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay
I have used below HTML code and as expected it only fetched one image. My selected gallery item can have more than one image. How can I fetch all images?
<table><tr><td> <img src='" & First(Gallery1.Selected.Attachments.AbsoluteUri).AbsoluteUri & "'></td></tr></table>
@VijayTailor
Hi @RameshMukka ,If you using HTMLText then Please use the double quote "and paste you HTML content here"
See the reference image below.
Sorry, if my question didnt make sense. Your formula worked well for me. But its getting only one image. My selected gallery item can have 1 or more image attachments. How do I fetch all image attachments and put them in table data.
Hi @RameshMukka ,I can suggest better use gallery for this purpose.see the below image for reference -
Gallery11.Selected.Attachments
My gallery has got several filters so am unable to use gallery1.selected.attachments. I used the one below. But I dont see images coming up. I have used ThisItem.Value and also ThisItem.AbsoluteUri for gallery item. Both didn't help
LookUp('BPIMB Solution Catalog',ID = Gallery1.Selected.ID).Attachments
Hi @RameshMukka ,You can follow the below approach,See the reference Demo - Hope this will help you to resolve your IssueThanks,
Thank you so much Vijay. This is what I was looking for and it worked like a charm. Thanks a lot for your patience and time!
What do you put in the HTMLText to make all of the attachments display in the PDF? Thanks!
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 836 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
MS.Ragavendar 231 Super User 2025 Season 2