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 / 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

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard