Hi, I have items from a request and I'm trying to convert it as a pdf.
Word template does not allow nested pictures, so I use the onedrive connector.
My issue is that I try to make it with html before
- on my dataverse entity I have the short URL of the picture.
- I get file content with that short URL
- I add any object in an array using dataUri(getfilecontent body) with html injections
- I create a HTML table
- finaly create my file
this is a short screenshot of my flow
this is my result:
How could I make it works??
word template is no longer a solution (loosing 2 days and have seen that nested pictures don't works).
Thank you in advance for your help
Solved! Go to Solution.
Hi @Kesh,
You could try this method:
1. Append the table tags and image content into the test variable:
<tr>
<td>6B2C</td>
<td>"<img src='@{dataUri(outputs('Get_file_content_using_path')?['body'])}' width='128' height='128'>"</td>
</tr>
2. Then convert the array into a string by using Join action, I use the blank space as a seperator:
3. Format the table HTML as below:
<body>
<table style="width:100%">
<tr>
<th>Column1</th>
<th>Image</th>
</tr>
@{body('Join')}
</table>
Run result:
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Kesh,
You could try this method:
1. Append the table tags and image content into the test variable:
<tr>
<td>6B2C</td>
<td>"<img src='@{dataUri(outputs('Get_file_content_using_path')?['body'])}' width='128' height='128'>"</td>
</tr>
2. Then convert the array into a string by using Join action, I use the blank space as a seperator:
3. Format the table HTML as below:
<body>
<table style="width:100%">
<tr>
<th>Column1</th>
<th>Image</th>
</tr>
@{body('Join')}
</table>
Run result:
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
72 | |
27 | |
22 | |
15 | |
13 |
User | Count |
---|---|
140 | |
42 | |
42 | |
35 | |
30 |