Hello,
I have created a Flow to match a specific set of words in an email subject, however, I want to filter out the following words: Re, RE, Fw, FW, Fwd, FWD, Automatic reply. If the subject contains any of those words, I do not want the flow to continue.
I set up a condition that tries to match those words to an array, but that didn't function as I had hoped. I also tried an "Apply to each" against that array, but that still failed.
This is where I left it. I want it to check against each item in the variable.
I'm sure that I'm not implementing it correctly, so apologies for my lack of understanding in regard to context -- I'm still learning. Searches have not resulted in a working solution. If someone can help point me in the right direction, it'd be much appreciated.
Thanks!
Solved! Go to Solution.
Hi @kcordell,
Please try to combine function Or with Contains in the condition to filter emails based on the subject.
The flow could be simple configured likes below. The code in the Condition is:
@or(contains(triggerBody()?['Subject'], 'Re'),contains(triggerBody()?['Subject'],'FW'),contains(triggerBody()?['Subject'],'Fw'),contains(triggerBody()?['Subject'],'Automatic reply'))
Please take it for a reference.
Best regards,
Mabel Mao
Hi @kcordell,
Please try to combine function Or with Contains in the condition to filter emails based on the subject.
The flow could be simple configured likes below. The code in the Condition is:
@or(contains(triggerBody()?['Subject'], 'Re'),contains(triggerBody()?['Subject'],'FW'),contains(triggerBody()?['Subject'],'Fw'),contains(triggerBody()?['Subject'],'Automatic reply'))
Please take it for a reference.
Best regards,
Mabel Mao
That did the trick. Thanks so much!
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
40 | |
36 | |
34 | |
32 | |
27 |
User | Count |
---|---|
40 | |
37 | |
33 | |
25 | |
22 |