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 Automate
Unanswered

JSON With Image

(0) ShareShare
ReportReport
Posted on by 353

Hi Community,

 

I have a flow where I grab data from M. Forms and generate a PDF with the data loaded into a table, using the following JSON.

 

<!DOCTYPE html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Tabla</title><meta name="author" content="xxx"/></head><body><style>Table {font-family: Arial, Helvetica, sans-serif; background-color: #EEEEEE; border-collapse: collapse; width: 100%;} Table td, Table th {border: 1px solid #ddd; padding: 3px 3px;} Table th {font-size: 15px; font-weight: bold; padding-top: 12px; padding-bottom: 12px; text-align: left; background-color: #1C6EA4; color: white;
}
</style><h1><a name="bookmark0">@{triggerOutputs()?['body/Registro']}</a></h1><p>Fecha: @{triggerOutputs()?['body/Fecha']}</p><p></p>

 

<table border="1" cellspacing="0">
<tr>
<td>Especie:</td><td>@{triggerOutputs()?['body/ProgramayEspecie']}</td>
</tr>
<tr>
<td>Number:</td><td>@{triggerOutputs()?['body/Title']}</td>
</tr>
<td>Nombre y CI Asistente 1:</td><td> @{triggerOutputs()?['body/NombreyRUTAsistente4']}</td>
</tr><tr>
<td>Nombre y CI Asistente 2:</td><td> @{triggerOutputs()?['body/NombreyRUTAsistente5']}</td>
</tr>
</table>

 

</body></html>

 

With this, a pdf like this is generated.

 

Francisco77_0-1694661913340.png

Would it be possible with the same JSON to add a static image in the upper right corner?.

 

Regards,

 

Francisco

Categories:
I have the same question (0)
  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @Francisco77  ,

     

    Yes you can add an image to the PDF. Checkout the below post.

     

    https://www.matthewdevaney.com/power-apps-add-an-image-to-a-pdf-form/

     

    The post explain how can image be added from PowerApps but since you want to add a static image you can store it in OneDrive or SharePoint document library and use the get file action and add the image in the PDF.

     

    Hope this helps!

     

    If this solves your problem please mark this as a solution.

     

    Thanks,

     

  • Francisco77 Profile Picture
    353 on at

    Thanks, but I can't use "Populate a Microsoft Word" since it is premium due to my company's policies.

  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @Francisco77 ,

     

    You can create an HTML and pass the image and then convert that html to PDF using the OneDrive for business connector which is non-premium.

     

    Thanks,

  • Francisco77 Profile Picture
    353 on at

    Thanks but I am not sure how pass the image.

     

    Regards,

  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @Francisco77  ,

     

    Please checkout the below link.

     

    https://forwardforever.com/pdf-document-from-multiple-images-with-power-automate/

     

    Hope this helps!

     

    If this helps , please mark this as a solution and accept this as a solution.

     

    Thanks,

    Sanmesh

  • Francisco77 Profile Picture
    353 on at

    Thanks for the information @SanmeshG¡

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 535

Last 30 days Overall leaderboard