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 / Need an expression to ...
Power Automate
Unanswered

Need an expression to eliminate " RE: " and " Re: " from the subject of the mail

(0) ShareShare
ReportReport
Posted on by

Hello all,

Let me explain my workflow agenda. When the email is flagged in outlook then-new planner tasks should be created in the planner with the mail subject as a task name. Here for replied mails, it should not create a new task. To avoid repetition of the task, before the task is getting added to the planner, the flow should check whether is there any tasks already present in the planner same as the subject of the mail or not. 

 

But for replied mail RE: and Re: will be added at the beginning of the subject. Here I need to remove those RE: and Re: from the subject. For that, I used one simple expression, but am facing an "expression invalid error". Below is the expression.

@or(contains(triggerBody()?['Subject'], 'Re'),contains(triggerBody()?'['Subject'], 'RE'))

 

If the above expression is wrong or any other expression could resolve my issues please suggest. Any help is appreciated.

Categories:
I have the same question (0)

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard