Skip to main content

Notifications

Community site session details

Community site session details

Session Id : FDneXqOZlLzreqkUEZhYpu
Power Automate - Building Flows
Answered

Split Email Body from Before Reply Line

Like (0) ShareShare
ReportReport
Posted on 25 Feb 2020 03:07:29 by

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? 

 

  • Community Power Platform Member Profile Picture
    on 25 Feb 2020 at 20:57:42
    Re: Split Email Body from Before Reply Line

    @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">'))
  • Verified answer
    v-alzhan-msft Profile Picture
    on 25 Feb 2020 at 09:05:24
    Re: Split Email Body from Before Reply Line

    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
    on 25 Feb 2020 at 07:17:50
    Re: Split Email Body from Before Reply Line

    @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.

  • v-alzhan-msft Profile Picture
    on 25 Feb 2020 at 06:39:27
    Re: Split Email Body from Before Reply Line

    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.

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!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,788 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard
Loading started