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 Automate
Unanswered

"Forward" message with keyword from a Teams channel to a Teams group chat

(0) ShareShare
ReportReport
Posted on by 1

Hi all, 
sorry I'm completely new to the automate topic and guess I lack some basic understanding, but I hope someone can help.

So my use case is this:

Message is posted in Teams channel --> Keyword yes/no? --> Keyword no: do nothing | Keyword yes: Send message with notification and "initial channel message content" to Teams group chat.

 

  • People will drop messages when an incident occurs in an incident MS Teams channel (let's call it "Incident Channel"). Sometimes these messages will contain keywords like #prod or #int or #azure, sometimes not.
  • As soon as the keyword "#prod" is mentioned in a message on said channel, I want to forward that to a group chat (let's call it "FSJ Chat").
    This should look like a little alert notification text ("There was an occurance on PROD.") and then below that the initial message from the channel should be "mirrored".

So far I managed to:
EITHER "mirror" the content of a channel message to a group chat OR when keyword is mentioned in channel message send a notification to a group chat.
But NOT the combination of both.
This is because as soon as I use the "Keyword"-Trigger instead of the "Message sent"-Trigger the "Body Content" dynamic content disappears from the list of dynamic content options.

I'm really lost here. I guess I'm missing a step somewhere but don't know enough about the whole matter.

Thanks in advance.

Categories:
I have the same question (0)
  • SamLed Profile Picture
    2,338 Moderator on at

    Hi,

     

    You could create a flow using "When a new channel message is added" trigger. Select the channel you want to monitor then, for every message sent triggering flow, check if it contains one of the key words you mentioned.

     

    To illustrate, in the following flow, I check if input message contains '#prod' keyword then post a message to another channel, you can add as many condition as there are keywords if you want to post in a different channel depending of keyword posted or add or/contains in same condition if you want to post in the one channel for all keywords:

     

    SamLed_0-1691611087707.png

     

    I didn't take into account the yes/no input as I think #keyword are enough on their own. But up to you to adapt.

    _____________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard