web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTML tags in draft ema...
Power Automate
Suggested Answer

HTML tags in draft email created by power automate flow

(4) ShareShare
ReportReport
Posted on by 9
Hi, I have a number of flows in which I create a Draft Mail. However, everytime it runs and I check in my drafts, I see all kinds of HTML tags around the text I typed in the body of the draft email action in my flow... I've searched the whole internet, but nothing seems to work to fix this...
 
 
 
EDIT: switching to HTML mode in the 'Draft an email message' block does not help: this does in deed show HTML tags around the body's text, but this does not change anything to the final result in the actual generated draft mail.
Categories:
I have the same question (18)
  • Chriddle Profile Picture
    8,443 Super User 2025 Season 2 on at
    There is a button to switch:
  • chetfarley Profile Picture
    9 on at
    I'm having the same issue with the Draft an email message action. Even after adding HTML content within the body of the email in Power Automate, the draft that is created in Outlook is rendered as plain text.
     
    I don't see any option on Draft an email message to convert to HTML. CoPilot suggested it would automatically detect if HTML formatting is added, and would then set "IsHtml": true
     
     
    It also said there is a Create draft (V2) action, which I don't see. The Send an email (V2) action does work, and sends an email with HTML format. Too bad it's not a draft!
     
  • Suggested answer
    DS-30051659-0 Profile Picture
    2 on at
    This seems like something that should be fixed, but there is a simple work around.
     
    Put the text of your message into a 'Compose' action first, and then use the Outputs of the 'Compose' action in the Body parameter of the 'Draft an email message' action. This will clean up the HTML tags showing up. 
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    This is a common nuisance with the new designer. If you want to use the new designer, I recommend that you create the HTML code for the e-mail in a compose action. Then put the output of the compose action in the e-mail action.
     
    I would also encourage you to switch to the old designer, so you get prompted for the survey, and make note of this issue in the survey so hopefully it gets addressed. There should be no reason that the e-mail action should be inserting its own CSS into the e-mails. It messes everything up when you spend the time defining your own CSS or coding it into the e-mail.
  • talk2frank Profile Picture
    4 on at
    Sadly the draft actions never allow html design in an email. It simply doesn't work. Its send or nothing.
  • Suggested answer
    Tomac Profile Picture
    3,951 Moderator on at
    Draft an Email will not allow HTML formatted messages.
     
    BUT! If you're only doing basic formatting like line breaks, you can still do this!
     
     In your action click the Code View button: (I have screenshots of a Send an Email action but this process is the same in both)
     
    Then delete the HTML formatting from the text box and you're left with plaintext formatting, which will work in your draft.
  • CU13081106-1 Profile Picture
    4 on at
    Hi there,
    If you're aiming to create a Microsoft 365 Outlook draft with HTML formatting, the "Send an HTTP request" action in Power Automate is a great option. This method allows you to build rich email content using HTML tags.
    Here’s a quick overview of how to do it:
    1. Use the Microsoft Graph API endpoint to create a draft message.
    2. Include your HTML content in the body field of the request.
    3. Make sure your flow has the necessary permissions to access Outlook via Graph.
    You can find detailed instructions in the official documentation here.
    Let me know if you'd like an example payload or help setting up the flow!


    https://graph.microsoft.com/v1.0/me/messages
    {
        "subject":"Did you see last night's game?",
        "importance":"Low",
        "body":{
            "contentType":"HTML",
            "content":"They were <b>awesome</b>!"
        },
        "toRecipients":[
            {
                "emailAddress":{
                    "address":"AdeleV@contoso.com"
                }
            }
        ]
    }

    Cheers
  • Tomac Profile Picture
    3,951 Moderator on at
    Hi @RS-21050749-0, did the comments below help resolve your issue? If so, please mark the helpful comments(s) as the answer to assist future users searching for this problem.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard