Hello,
I'm trying to build an email flow with some conditions on the subject, this is, if the subject contains AAA or BBB, or CCC, for example then... execute some action
In advanced mode something like this:
@contains(triggerBody()?['Subject'], 'AAA') or @contains(triggerBody()?['Subject'], 'BBB')
But I think my approach is completly wrong and I can't get this working.
Is this possible?
Thank's in advance.
Hi all
I created a flow to take actions only if the emails subjects are specific words, but it seems it runs the flow for any email subjects. I used subject is "equal to" but that did not filter email subject neither. Based on what I read from other posts that should work. But I dont know where can be possible problem. Thank you if you can help me with that
Hi @josecardoso,
Could you please share a screenshot of your flow's configuration?
I think there is something wrong with the formula that you filled within Condition box, I have made a test on my side and please take a try with the following workaround:
Within Condition box, click "Edit in advanced mode", type the following formula:
@or(contains(triggerBody()?['Subject'], 'AAA'),contains(triggerBody()?['Subject'], 'BBB'),contains(triggerBody()?['Subject'], 'CCC'))
The flow works successfully as below:
More details about using expression in flow actions, please check the following article:
https://flow.microsoft.com/en-us/blog/use-expressions-in-actions/
Best regards,
kris
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional