cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft Teams notification when post on channel

Will be great if when we use the "Post to channel" action from Microsoft Teams connector send automatically a message to all people in the team channel or if we have the possibility to send a notification using a custom action to the people in the team channel at Microsoft Teams.

Status: New
Comments
JerryHo
New Member

It has been 3 and a half year since this is suggested, is this still stuck in working in progress stage or still under suggestion stage?

z3019494
Regular Visitor

It's now semi possible with the new at-mention token actions for Teams:

 

  1. Create two variables (one Array, one String) to house the tokens:
    z3019494_0-1615873687969.png

     

  2. Use the List group members action on the Team you're interested in, via Office 365 Groups, or from a SharePoint list if you wish to customise the recipients. Append each at-mention token to the array just created.
    z3019494_1-1615873810932.png

     

  3. Use the Join action and join the array together, by using space, pipe, space, e.g:  as the join delimiter. The additional spaces will ensure it looks nice. Stick the outputs of the Join into the string variable.
    z3019494_2-1615873924270.png

     

  4. Insert the string variable into an adaptive card bot post, or a new Teams message:
    z3019494_3-1615873973847.pngz3019494_4-1615873986250.png

     

You should then be able to notify everyone in that team if you used the List group members action.

z3019494_5-1615874051605.png

 

Some clever SharePoint list filtering can then ensure you notify the correct groups of people within the Team - shame that we can't use the custom at-mention tags that can be created. 

z3019494
Regular Visitor

With the SharePoint filtering that was mentioned above: so instead of using the Get group members action, I can get them from a custom SharePoint list which houses my members:

 

z3019494_0-1615874205118.png