Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Natively convert Power Apps HTMLtext data to PDF?

(0) ShareShare
ReportReport
Posted on by 1,597 Super User 2024 Season 1

Hello,

 

In my flow, I am taking various outputs from a PowerApp and creating a HTML document that is then converted to a PDF file using the Encodian HTML to PDF action.

 

Is there any native functionality I could utilise so I don't need to use 3rd party premium connections?

sudosaurus_0-1696588399399.png

sudosaurus_1-1696588446930.png

sudosaurus_2-1696588501897.png

sudosaurus_3-1696588570867.png

sudosaurus_4-1696588662179.png

sudosaurus_5-1696588704058.png

This is what is included in the HTML Data field:

concat('<!DOCTYPE html>
<html>
<body>
<table style="width: 100%;">
<tr>
<td>
', triggerBody()['text'], '
</td>
</tr>

<tr>
<td>
<img src="', outputs('Compose_-_Photo_to_base64'), '" />
</td>
</tr>

<tr>
<td>
', triggerBody()['text_3'], '
</td>
</tr>

<tr>
<td>
', outputs('Compose'), '
</td>
</tr>

<tr>
<td>
', triggerBody()['text_4'], '
</td>
</tr>

</table>



</body>
</html>')

sudosaurus_6-1696588782472.png

 

  • Humaira Profile Picture
    2 on at
    Re: Natively convert Power Apps HTMLtext data to PDF?

    Hi,

    Yes, it is possible to convert HTML text data to PDF without any third-party or premium connector. First, you need to create an HTML file and convert the file using the connector "Convert file preview" for reference.

    Humaira_0-1699961715252.png

     

  • SoporteD365 Profile Picture
    4 on at
    Re: Natively convert Power Apps HTMLtext data to PDF?

    Yes, it is possible like @Matthy79 through Onedrive, it is tedious but it is possible at least with a small logo like my following example
    SoporteD365_0-1696977174029.png

    HTML

    SoporteD365_1-1696977240674.png

    SoporteD365_3-1696977497853.png

     

    Even like .jpg

    SoporteD365_4-1696977592009.png

     

     

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on at
    Re: Natively convert Power Apps HTMLtext data to PDF?

    @AlexEncodian: I think the question was about „3rd party premium connections“.

     

    @sudosaurus: Was it the answer you are looking for? Have you tried „Convert file“ (OneDrive for Business). I think you can use html files and it is not even premium.

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on at
    Re: Natively convert Power Apps HTMLtext data to PDF?

    Hello @sudosaurus 


    You could use “Populate a word template” for your scenario. You would have to create a word file where you define the variables and than use the flow to fill them.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >