cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jpitt42
Level: Powered On

Split Email Body from Before Reply Line

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? 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

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.

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Split Email Body from Before Reply Line

Hi @jpitt42 ,

 

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.

jpitt42
Level: Powered On

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.

Community Support Team
Community Support Team

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.

View solution in original post

jpitt42
Level: Powered On

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">'))

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,272)