cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frank7
Helper II
Helper II

Showing only the latest comment

Good morning

I have created a flow which is working fine but there is a detail I like to improve.

When a status change a mail is sent and it contains comment. I have discovered that always all comment are added but I would like to achieve that only the latest comment from MS Lists is added to the mail.

Frank7_0-1632896985241.png

 

4 REPLIES 4
Frank7
Helper II
Helper II

None who could help here?

AnthonyAmador
Community Support
Community Support

Hi @Frank7 

 

I assumed that what you have in the item "Comments" is a string with all the comments, first you want to make sure that all the comments are separated by a character, (in my example I use "|"), then I use an expression to split and extract only the last part. 

 

last(split(variables('comments'),'|'))

 

This is the example. 

 

AnthonyAmador_0-1633558620096.png

 

AnthonyAmador_1-1633558849127.png

 

Hope this helps.

Best regards. 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Hi @AnthonyAmador , thank your for your feedback. I just came back from vacation and I will have a closer look asap

Frank7
Helper II
Helper II

Hi @AnthonyAmador you have helped me in this matter but now I have found out that it makes much more sense to add all comments to the mail. I have seen the option to add date/time and the and the one who added this comments to the mail to have a kind of a history but I am not able to find this again in the web. can you help me out?

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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,686)