cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lp939
Level: Powered On

Adding HTML to Microsoft Flow Email

Are there any templates available to add HTML to email sent using Microsoft Flow? Ie. A bar across the top of the email, a company logo at the top of the email, etc.

20 REPLIES 20
Community Support Team
Community Support Team

Re: Adding HTML to Microsoft Flow Email

Hi @Lp939,

 

You should be able to write simple HTML language in the Send an Email action Body field, when the Is HTML is set to Yes:

91.PNG

As a reference:

How to insert a "Clck Here" in an email?

Regrads,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
RKushner
Level: Powered On

Re: Adding HTML to Microsoft Flow Email

How about html in an Outlook Approval Email?ApprovalEmail.JPG

Community Support Team
Community Support Team

Re: Adding HTML to Microsoft Flow Email

Hi @RKushner,

 

HTML format for Approval Email is currently not supported.

Please check the following thread for more details:

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Send-Approval-Email-Body-Formating/td-p/...

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
rogelio
Level: Power Up

Re: Adding HTML to Microsoft Flow Email

Is there a way to add html code to display date or time in the email that is sent from Flow?

 

I have been able to insert a logo, but not been able to insert a current date or time to be sent out with the email. I have already set the "Is HTML" to Yes.

Eddie_Thomas
Level: Powered On

Re: Adding HTML to Microsoft Flow Email

You'll need the UTCnow() function to get the current time (and date). this can then be added into the body of the email.

 

On a similar note, I've been creating some 'better' looking emails by composing them in outlook, sending them to myself then right click 'view source', copy all the html and then paste it in the 'body' box. This will replicate the email as seen in outlook. It might not be the most efficient coding but its quick and easy to do.

 

If required, you can insert dynamic content into the html code to make the email display info specific to the flow, i.e. a list ID number or submitter's name...

 

hth

@eddierthomas

Re: Adding HTML to Microsoft Flow Email

@Eddie_Thomas I've tried using the UTCnow() function but it just prints "UTCnow()". Do I need to include anything else to make it know I am calling a function? 

Eddie_Thomas
Level: Powered On

Re: Adding HTML to Microsoft Flow Email

The 'old' way was to compose some dynamic content (using the compose action) with an @ sign in front of it. The new way I think would be to use the 'expression' function that appears alongside the 'dynamic content' for any input box. Let me know how you get on, i'll cut and paste the actual content next time I'm at my desk...

Re: Adding HTML to Microsoft Flow Email

Ahhhh I see. Thank you! I didn't even see the expression function earlier. It worked using this 

 adddays(utcnow(),1, 'yyyy-MM-dd')
zac1
Level: Powered On

Re: Adding HTML to Microsoft Flow Email

Hi Team,

 

I managed to get HTML to work in the "Send approval email" in flow, try the below...

 

All i did was add "Speakmarks to the start of the message/email in flow"....

 

Snap22.png

 

Look at how the approval email came through...

Snap21.png

Re: Adding HTML to Microsoft Flow Email

This does not work for approval emails (start an approval email which is sent) as no drop down for HTML and nothing in the settings for that step either. I would have expected that this could be applied to all email templates that Flow sends so currently it is lacking this addition of functionality. Smiley Sad 

Bevans
Level: Power Up

Re: Adding HTML to Microsoft Flow Email

This is way past your original post date: hopefully, you'll still get it. Was wondering how you got a logo inserted in the HTML email?

asdeev
Level: Powered On

Re: Adding HTML to Microsoft Flow Email

This doesnt work for approval flow. . I am struggling to find a way to have HTML tags working in my flow to make Emails look cleaner. Any luck anyone?

Mike2500
Level 8

Re: Adding HTML to Microsoft Flow Email

HTML isn't an option for the approval emails, but the details section of an approval supports markdown. Details and samples are available here.

Re: Adding HTML to Microsoft Flow Email

Seems a bit of a mystery why it has taken so long for someone to comment on this about markdown. Planning to put it to the test today as my workaround was to use Send email with options format but unfortunately the email templates for that are not as nice as the approval emails

Re: Adding HTML to Microsoft Flow Email

Not having much luck with using Markdown at all.... 

 

Inkedmarkdownfail_LI.jpgmarkdown fail detail_table.png

Mike2500
Level 8

Re: Adding HTML to Microsoft Flow Email

The error message doesn't seem to be related to the markdown, but instead it's complaining about a field that "doesn't exist". I'd verify if this field has a value, and if so, create another small flow just for testing this field.

Re: Adding HTML to Microsoft Flow Email

Hmmm  strange as I added the values from the dynamic content at the same time as trying to draft table, so they are available. 

I tried removing some and it triggered the approval email but it does not come in table format, instead I have bullets? 

Inkedremoved dynamic content_LI.jpg

 

 

 

Mike2500
Level 8

Re: Adding HTML to Microsoft Flow Email

Hmm. Apparently there's a relatively new bug that is preventing markdown from rendering in all environments. I just did a test myselft, and the tables are working in outlook online but not in outlook 2016. The tables also render correctly in the approvals center in flow. Here is another thread talking about this issue.

asdeev
Level: Powered On

Re: Adding HTML to Microsoft Flow Email

I tested at  my end with Markdown functionalities. The problem I am seeing now is that the manager receives the email in a formatted way but once the form is approved or rejects, the user is receiving email information in a really ugly formatted way . I dont know if there is a way to fix thi?

 

I have attached the pictures below. Please guide.manager approval.PNGuser email.PNG

>