
Announcements
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.