cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

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
Highlighted

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
Highlighted
Community Support
Community Support

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.

Highlighted

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

Highlighted

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

Highlighted

@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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (12,590)