web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Display image attachme...
Power Apps
Unanswered

Display image attachments from selected gallery item in HTMLText Control

(0) ShareShare
ReportReport
Posted on by 1,113

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
    Re: Display image attachments from selected gallery item in 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

    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,113 on at
    Re: Display image attachments from selected gallery item in HTMLText Control

      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
    Re: Display image attachments from selected gallery item in HTMLText Control

    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,113 on at
    Re: Display image attachments from selected gallery item in HTMLText Control

    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
    Re: Display image attachments from selected gallery item in HTMLText Control

    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,113 on at
    Re: Display image attachments from selected gallery item in HTMLText Control

    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
    Re: Display image attachments from selected gallery item in HTMLText Control

    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,113 on at
    Re: Display image attachments from selected gallery item in HTMLText Control

    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
    on at
    Re: Display image attachments from selected gallery item in HTMLText Control

    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

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 836 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard