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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Split Email Body from ...
Power Automate
Answered

Split Email Body from Before Reply Line

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Is there a way to only limit the information that I input from an email to anything above an email reply line in the body or just their responses? 

 

Categories:
I have the same question (0)
  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Would you please explain more details about your requirement?

    Do you want to get only the reply email (If It is a forward email and contain the previous email content) when an email arrives?

    If yes, you could add a special string such as End at the end of the body of the reply in the forward email, and than you could split the body in the flow.

     

    The screenshot of the flow should as below:

    1.png

     

    And the screenshot of the flow should as below:

    2.png

    Expression in the Compose 2 as below:

    first(split(outputs('Compose'),'End'))

     

    The flow would run successfully as below:

    3.png

     

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-alzhan-msft My apologies for not being more specific.  

     

    What I am trying to do it ask a user in an email to reply to an initial email with either the text "Yes" or "No" and then split what was responded to use as a condition on how to proceed.  I unfortunately can't use either an approval or a condition because I need to send the initial email from a shared email box.

  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @jpitt42 ,

     

    Unfortunately, the action"Send an email with options from the shared mailbox" is not supported in microsoft flow currently, or your requirement could be easily achieved.

    And You could refer to steps below for the alternative way:

    You could create a flow to send the initial email with the "Send an email from the shared mailbox" action.

    And you need to create another flow to trigger when a new email arrives in a shared mailbox, check if the body of the email is equal to Yes or No.

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-alzhan-msft - thank you so much for your help.  What I ended up doing was splitting the HTML body of the message between <div class ="WordSection1"> and the next <div> and then converting html to text.

     

    last(split(first(split(triggerBody()?['body'], '<div>')), '<div class="WordSection1">'))

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard