Search

Build a Power Apps PDF Generator with HTML, Flow and OneDrive

Updated: May 21

Do you want to make invoices or keep record of something in Power Apps? This video will teach you how to make HTML, utilize Flow and OneDrive, and send information from Power Apps directly to a PDF.

In this video you will learn about:

  • HTML generation

  • The Concat function

  • The DataUri expression


Link to the video on YouTube: Power Apps PDF Generator using Microsoft Flow PDF Converter

Link to the video for Curated Library subscribers: Power Apps PDF Generator using Microsoft Flow PDF

Key timestamps:

  • 0:00 Intro

  • 2:04 Demo of the solution

  • Shane demonstrates the PDF solution that he is going to build throughout the video which includes an image and Chewy’s Dog Food Report

  • 3:08 Write the HTML, add it to Flow, and utilize the Concat function

  • Write the HTML for Chewy’s Dog Food Report and create a new flow. A file is created within the flow and the Concat function is selected for the file contents. HTML is added within the parenthesis of the Concat function. The flow is run. An action is added to the flow to get the image onto the PDF.

  • 9:21 Convert the file format and utilize the DataUri expression

  • A variable is created that has the converted version of the file via the Initialize Variable flow. The DataUri expression is selected as the value and the file content of the image is added within the parenthesis of the expression. The flow is run.

  • 14:35 Edit the flow and convert the HTML file to a PDF

  • The OneDrive Convert a file using path action and the OneDrive Create file action are added to the flow in order to convert the HTML file to a PDF file. The flow is run.

  • 17:33 Add the flow to Power Apps

  • An app is created in Power Apps and a button is added to run the flow. The manual trigger is deleted from the flow and the Power Apps connector is added. HTML is updated to include the data from Power Apps. The flow is added to the button in Power Apps.

  • 23:32 Generate a PDF from Power Apps

  • The app is previewed and a PDF is generated directly from Power Apps.

Additional learning:

87 views0 comments

Recent Posts

See All