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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard