Hello, fellow Power Platform enthusiasts! wanted to share this fabulous discovery. Since Power Apps doesn’t (yet) have a Print feature, there’s a workaround, with the help of Power Automate. First step is to insert an HTML Text input on your Power App and put it in your HTML code. It’ll be something like this, where the values in yellow are replaced with your needed fields:
Change Control Type” & ChangeControlTypeValue.Selected.Value & “
Initiator: ” & InitiatorValue.Selected.DisplayName & “
Description: ” & DescriptionValue.Text & “
Business Details: ” & DataCardValue9.Text & “
Then you add a “Print” button to your Power App and you connect it to a Power Automate. The Power Automate will need to include variables: the HTML text, the file name, the intended recipients of the PDF, etc. It will look like this:
Above, in purple, the variables varHTML, varSendTo, varInitiator, and varFileName are created via the “Initialize Variable” action. All are then connected to the Power Apps using the “Ask PowerApps” feature. These will need to be sent to the Power Automate from your button’s Run string in the Power App. Power App will be so kind as to prompt you for each of these variables, in the order they’re needed. Don’t mind the bold text – that’s simply a result of where my cursor was when I grabbed the screenshot.
The last of the variables, varFullFileName, however, is a concatenated field to add a .html extension to varFileName: