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 Automate / display images in html...
Power Automate
Answered

display images in html table coming from CDS entity

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I am fairly new to power automate and stuck in a issue for 2 days now, any help would be appreciated. This flow sends an email to the customer when order is created in Dynamics CRm. I am trying to pull the product images but instead of image a long string is showing which looks like image 2. can anyone point me in the right direction?

akaur_0-1628871509336.png

akaur_1-1628871678872.png

 

 

Categories:
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Anonymous 

     

    Since the string start with /9j/ they appear to be all jpg images encoded in base64. It is possible you have some which start with something other than /9j/ - but to keep it simple let's say all of the long strings start with /9j/ for the moment. For them to show in e-mail they may need to be in an HTML image tag, such as below expression:

     

     

     

     

     

    concat('<img src="data&colon;image/jpg;base64, ',yourString, '" />')

     

     

     

    Please replace the part that says &colon; above

    with the actual colon, or :

     

    (See screenshot below for more information).

     

    You can try for example above where it says yourString instead you can put something like outputs('new_productio...') (this won't be correct, it is for the sake of example or guidance what you can put there). Also remember to place this as an 'Expression' like this:

     

    81321-exmpl-01.png

     

     

     

    You can check if something like the above works for you. I did not specifically test it, so there might be more to this, but hopefully it can help you to

     


    @Anonymous wrote:

     point me in the right direction

     


     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for reply, your method does bring the image on body of the email, but when i try to use output of compose in select, it appears as a string again 😞

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I found solution, basically you will have to create a html table with the help of variable which is intialized as a string and then use append variable to create for table. Here's what it will look like

    akaur_0-1629211407776.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

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 Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard