web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Remove Text from Email...
Power Automate
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?

Categories:
I have the same question (0)
  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard