Stop loosing HTML styling when branding emails in Power Automate

Do you ever style your emails you send using Power Automate with nice HTML and inline CSS to give a more professional look to your end users and give them more peace of mind that the email delivered is genuine and from the organisationā€¦ READ MORE [https://lewisdoes.dev/blog/stop-loosing-html-sty
four letter tiles
Photo by Miguel Ɓ. PadriƱƔn on Pexels.com
In: Low Code Lewis Content šŸš€

Do you ever style your emails you send using Power Automate with nice HTML and inline CSS to give a more professional look to your end users and give them more peace of mind that the email delivered is genuine and from the organisation its actually coming from?

Well, one of the things that can be super annoying when doing this is that sometimes when we come back to edit a flow where we have this kind of styling in an email body using HTML, weā€™ll find that its all been stripped out for no reason! Iā€™ve experienced this a few times when working with Power Automate.

In this quick post Iā€™ll show you a simple trick to ensure this doesnā€™t happen when you come back to edit those flows.

Add a compose action

So first in your flow youā€™ll want to add a compose action. Then inside this compose action use the input field to create your email body. This is where you want to put all your styled HTML that you would normally put in your email body.

Now the next thing we will do is add that normal send an email action which needs to come after the compose action. Inside the body input for our email action we need to use the dynamic content outputs from this compose action.

And its that simple! Now when you come back to edit your flows, your HTML content is never going to be stripped out of the compose action and your send an email action will always keep hold of that dynamic content.

Iā€™m not sure why this happens, but Iā€™ve experienced it loads and this is a super easy trick to get around the issue.

Written by
Lewis Baybutt
Microsoft Business Applications MVP ā€¢ Power Platform Consultant ā€¢ Blogger ā€¢ Community Contributor ā€¢ #CommunityRocks ā€¢ #SharingIsCaring
Comments
Great! Youā€™ve successfully signed up.
Welcome back! You've successfully signed in.
You've successfully subscribed to LewisDoesDev.
Your link has expired.
Success! Check your email for magic link to sign-in.
Success! Your billing info has been updated.
Your billing was not updated.