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 / Display image attachme...
Power Apps
Answered

Display image attachments from selected gallery item in HTMLText Control

(0) ShareShare
ReportReport
Posted on by 1,121

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?

Categories:
I have the same question (0)
  • Vijay Tailor Profile Picture
    2,961 on at

    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

    VijayTailor_0-1601926563463.png

     

    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



  • rameshmukka Profile Picture
    1,121 on at

      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

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @RameshMukka ,

    If you using HTMLText then Please use the double quote "and paste you HTML content here"

    See the reference image below.

    VijayTailor_0-1601928866157.png

    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

  • rameshmukka Profile Picture
    1,121 on at

    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.

    @VijayTailor

     

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @RameshMukka ,

    I can suggest better use gallery for this purpose.
    see the below image for reference - 

    Gallery11.Selected.Attachments

    VijayTailor_0-1601930512514.png

    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

     



  • rameshmukka Profile Picture
    1,121 on at

    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 

     

     

     

    RameshMukka_0-1602007167422.png

  • Verified answer
    Vijay Tailor Profile Picture
    2,961 on at

    Hi @RameshMukka ,

    You can follow the below approach,
    See the reference Demo - 
    ImageDisplayInGallery.gif
    Hope this will help you to resolve your Issue
    Thanks,

     

  • rameshmukka Profile Picture
    1,121 on at

    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!

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard