web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / When Keyword Phrases A...
Power Automate
Unanswered

When Keyword Phrases Are Mentioned In A Teams Channel

(0) ShareShare
ReportReport
Posted on by 70

I have a list of keywords:

"Phone Rebooted","Phone Restarted","Phone Restarting","Phone Rebooting","Phone Restart","Phone Reboot","Phone starting resetting","Phone started resetting","Phone started to reset","Phone just reset","Phone just restarted","phone restarted","Phone is restarting","VPN Tunnel Failure", "phone randomly restarted"

 

I am needing to create a flow to a Teams Channel. I see what looks like an option to use a power automate keywords object to select a team channel. Looks simple enough, but I am getting an error that I cannot use phrases, only single words.

 

Question:

In a Teams Channel, how do I use a automatic trigger to kick off a flow when one of the phrases I mentioned above is in a new conversation or a reply to an existing conversation?

 

Thanks in advance for any insights!

Categories:
I have the same question (0)
  • Verified answer
    Craig Stewart ABZ Profile Picture
    959 Super User 2024 Season 1 on at

    You could split your phrases to single words for the trigger so

    "Phone Rebooted","Phone Restarted","Phone Restarting","Phone Rebooting","Phone Restart","Phone Reboot"

     

    would become

    "Phone", "Rebooted","Pestarted","Restarting","Rebooting","Restart","Reboot"

     

    Then use a condition to see if the actual phrases are mentioned by getting the message details first

    CraigStewart_0-1664485488712.png

     

    For your conditions it's probably best to add toLower() around it and set all your contains to lower case

    something like this:

    toLower(outputs('Get_message_details')?['body/body/content'])
     
    That way your keywords are not case sensitive, and because your conditions are you need to switch them.
    CraigStewart_1-1664486228988.png
    Here I added PhOne ReStart in the chat which triggered the flow, without changing to lowercase it would fail the condition.
    CraigStewart_2-1664486271014.png

    Hope that is useful.

     

    Cheers

     

    Craig

     

  • JPey Profile Picture
    70 on at

    That worked great! One additional thing to note for future readers, conditional evaluations are limited to 10, so if you have more than 10 you need to nest an additional condition under the no of the first condition to do an additional 10. 

  • Craig Stewart ABZ Profile Picture
    959 Super User 2024 Season 1 on at

    Hi JPey,

     

    You don't need a nested condition - you can add your conditions as groups instead of rows that allows you to have 10 groups with 10 conditions which is a lot neater.

    CraigStewart_0-1664568004326.png

     

  • Jannes Profile Picture
    4 on at

    Hi, I think it would be great if we could provide a list of strings, where the strings can have spaces, special characters etc. It would make the use of this solution way less painful. Is this functionality expected some time? #featurerequest:)

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard