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 / HTML table including i...
Power Apps
Unanswered

HTML table including images from Dataverse

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone,

 

I'm working on a canvas app for service reports. Part of the report should be images of broken/fixed machine parts. 

Images and image description as well as other "meta data" are saved in a Dataverse table.

 

I would like to create a flow which makes an Html table (and later conversion to PDF) with 4 columns (Created on, WorkOrder Number, Image & Image description) and a dynamic number of rows, obviously depending on how many pictures our service engineer takes. 

 

I have read that I might need to do some base64 conversion of the Images, but all instructions I have seen are only about static images like a company logo in the corner and are not really helpful to my dynamic table problem.

 

Also I'm not sure if my src URL to the Image column is even correct. 

Name of table :Photostable

Name of column: NewImage

 

Any clues or tips would be appreciated.

 

P.S. The HTML text below is what I'm using to create the table.

 

"<h3><font size = 3> Report Images </h3>" & "<strong></strong>" & "<table width='100%' border='1' cellpadding='3' style='border:1px solid black; border-collapse:collapse'>" & "<tr style='background-color:#efefef'>
<th width='10%' align='left'><font size = 2> Created on </th><th width='10%' align='left'><font size = 2> WO Number </th> <th width='20%' align='left'><font size = 2> Image </th><th width='5%' align='center'><font size = 2> Description </th>
</tr>
<tr>" & Concat(
Sort(
Filter(
Photostable,
'Case ID' = 'Open Cases Gallery'.Selected.'Case ID'),
'Created On',
Ascending
),
"<td> <font size = 2>" & Text(
'Created On',
"[$-en-GB]yyyy-mm-dd"
) & " </td>
<td> <font size = 2>" & 'Work Order Number' & " </td>
<td align='center'> <img src=GET xXxXxXxX.com/api/data/v9.1/crbdf_photostable(42c1464f-f7cc-eb11-bacc-000d3a2257ad)/crbdf_newimage/$value?size=full/</td>
<td align='center'> <font size = 2>" & 'Description of photo' & " </td>",
"</tr><tr>"
) & "</table>"

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    @RezaDorrani made a really good video on this:

     

    https://www.youtube.com/watch?v=Da4do2DxmJE&t=1233s

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks! 

    This is already quite close to what I need.

    But he is using a Sharepoint list which means his flow is different.

     

    I guess my problem is after all how to access the images from Dataverse in a Flow.

     

     

     

     

     

  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Sorry, no experience with Dataverse. However, when applying common sense I'd think you need to GET your images, just from Dataverse instead of Sharepoint.

     

    Perhaps the below documentation can help you:

     

    Get a row by ID from Dataverse - Power Automate | Microsoft Docs

  • jzimmermancase Profile Picture
    369 on at

    Hey so this is a really old post but I think I found a solution.

     

    Here's a simple example:

    jzcase_0-1637598355358.png

     

    1. In your <img> src property, input the domain of your Dataverse.

    2. After the domain, use the expression: outputs('Get_a_row_by_ID')?['body/publisher_image_url']

    3. After that, add &Full=true

     

    Since you're converting to PDF right away, you won't have any trouble, but note that the HTML will only show the image if the user opening it has read permissions to the Dataverse row containing the image.

  • PowerDamo Profile Picture
    7 on at

    Has anyone come up with a solution for this? I have tried the above suggestions to no avail.

  • Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    Take a look at the following Blog:

     

    https://shaheer365.blogspot.com/2024/01/power-automate-dynamic-html-table-with.html

     

    Mark as solution if this solves your issue. Be sure to give a thumbs up

  • am543 Profile Picture
    2 on at

    Hi, can your flow be amended to get the images from a Sharepoint folder rather than a list?, if so would it be possible to advise please? Regards

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard