Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Trigger 'When a new email arrives in a shared mailbox' is picking up the wrong html tags

(0) ShareShare
ReportReport
Posted on by

Hi there.

 

Basic summary of my flow. I have a flow that triggers when a new email arrives in a shared mailbox. The issue is that the flow is not picking up the correct html tags from the trigger email. This is resulting in the email having single line breaks instead of double line breaks when separating paragraphs for the entire email - which makes for a messy email.

 

When viewing the source of trigger email it shows this for the html:

 

“Hi All,<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Yesterday”

 

The above HTML will always result in the following being published in an email (i.e. two line breaks between Hi All and Yesterday):

 

Hi All,

 

Yesterday

 

However, the flow picks up the following html instead of what's contained in the trigger email:

 

“Hi All,</p><p class="MsoNormal"></p><p class="MsoNormal">Yesterday”

 

The above html results in only one line break instead of two...i.e.

 

Hi All,

Yesterday

 

Any help on how to prevent flow from changing the html would be greatly appreciated.

 

Thanks.

  • Pstork1 Profile Picture
    66,026 Most Valuable Professional on at
    Re: Trigger 'When a new email arrives in a shared mailbox' is picking up the wrong html tags

    The <o:p> tags are inserted by Office applications, like Outlook and don't tend to be recognized as regular HTML. This is a known issue that I've seen reported outside of Power Apps and Power Automate when displaying email contents as a web page.  The only solution I've seen is to intercept the incoming HTML and replace all the <o: and </o: references with just a <.  I'm not sure if that is possible in this case or if the email is already converted to remove them by the trigger.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,026 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow