cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SaifAli
Helper III
Helper III

Body preview of trigger "When a new email is recieved" returns previous email body too

Hi Team,

 

So currently I'm building a flow where i need to distinguish between the original received email and the replied mail, To perform this i've used "RE" in the subject line so that i can have 2 different conditions and perform different steps as per the email (new or replied)

 

The current problem i'm facing is that in the replied email part i need to fetch the latest email received only but it is giving me the entire email even the details of previous email to which it is replied to. As can be seen in the image below, 

 

Body preview part is used in composeBody preview part is used in compose

Can someone help me over this i've used some string fuctions but no success so far.

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @SaifAli,

 

You can use the split() function to convert the Email body into an array, then get the first member.

Then use trim() function to remove leading and trailing whitespace, and return the updated string.

trim(split(outputs('Compose_2'),'From')[0])

Annotation 2019-09-12 095354.png

Best Regards,
Community Support Team _ Lin Tu
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
v-litu-msft
Community Support
Community Support

Hi @SaifAli,

 

You can use the split() function to convert the Email body into an array, then get the first member.

Then use trim() function to remove leading and trailing whitespace, and return the updated string.

trim(split(outputs('Compose_2'),'From')[0])

Annotation 2019-09-12 095354.png

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

Thanks @v-litu-msft ,

 

I'll try it and will let you know.

Good News!! It Worked Thanks @v-litu-msft 

jbrines
Post Prodigy
Post Prodigy

@v-litu-msft 

 

Is it possible to only have the body and not the signature part after it?

 

John.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (4,436)