Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Remove Text from Email after it arrives

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

lardo5150_0-1661802265405.png

 

So when the email arrives, it will look something like this in the HTML to Text:

 

Case 123456789 arrived in the queue
SLA due in 3h 57m

--- Open in Tool
Open in Tool
Customer: Some Customer
Case Title: Some Title

 

Some will have more text, but what I care about is what is in blue above.

I want to remove EVERYTHING after the time, which will vary, but the three dashes are always there ---

So maybe keep everything before that. 

How do I do that?

  • Kaif_Siddique Profile Picture
    2,104 Super User 2024 Season 1 on at
    Re: Remove Text from Email after it arrives

    Use Split function to extract the value before '---'

    Expression --> trim(first(split(triggerBody()['text'],'---')))"

    Kaif_Siddique_0-1661804757425.png

     

    If you like my response, please give it a Thumbs Up.
    If this helps, please Accept as solution.

     

    Regards
    Kaif

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492