
With this approach, you need to create a Variable and put the entire code inside that variable: This approach is good if you just want to send a static email or with a pre-defined structure, not subject to changes in runtime. If you test it now, you will see that you will be receiving a well-formatted HTML email in your mailbox: On the Send an Email (V2) Body editor, switch to View Code and place the custom HTML code inside:ĭoing that, you will notice that the editor will be blocked on the view code viewer. Option 1: Using the View Code feature on the Body Editor Using the View Code feature on the Body Editor.So, if we want to send a well-formatted custom HTML email we have two options: If you click it, you will see that everything that we will put directly on the body editor will be considered as text: Luckily for us, on the Power Automate designer, we will see a Code View button ( )
Well, we can write HTML code on the body of this action:īut the end result will not be what you expect:
With a powerful editor similar to what we have in our office tools (Word, Outlook, …)īut that also means that we no longer have the possibility to directly insert HTML code into the body property of the message, as we did earlier with the previous version. Is HTML property was removed from this actionĪnd a completely new look and feel of the Body property as you see in the picture below:. However, Send an email (V2) action has totally different behaviour. Deprecated Power Automate Outlook connector This action was great in my perspective because we were able to directly put HTML code on the body property and define that the email body format would be HTML by setting the property Is HTML to true. The only problem with that article is that I was using “send an email” action in Power Automate Outlook connector that is currently deprecated. It is still quite up to date, i.e., it is an excellent solution that you can still use today. Two years ago, I wrote a similar post on Microsoft Flow: How to pass the SQL data table results in a Markdown-formatted table into an Email notification or Approval Requests.