
Announcements
Hi Power Automate,
I am facing an issue with my flow. I want my flow to be triggered only when specific keywords, such as SCA, are mentioned in a channel. I have set a condition in the flow to ensure that the trigger only occurs on certain phrases and that the body content is always in lowercase. Although the flow works most of the time, I have noticed that it sometimes triggers on words that are not in the "keywords to search for" list. I have identified that the problem may be due to the "contains" function in the conditions, which triggers the flow when a word like "last" contains the letters "ast". Therefore, my question is how can I ensure that the flow only triggers on the exact words in my list and not on any other words.
best regards
Hi @EDHS
You could try to store all words independently in an array, and test if the word is in it:
You can store individual words using split function:
split(items('apply_to_each'),' ')
Hope it helps!
Ferran