Forum Discussion

cozimek's avatar
cozimek
Brass Contributor
Sep 08, 2020

How can an external service create a new chat message within a Teams channel?

We want to provide a way for our external service to send chat message notifications to a specified Teams channel when an action happens on our platform.  We started by registering an app within our Azure portal, and then tried to execute a POST using chatMessage, but got a permissions error.

 

In the documentation for chatMessage, it seems that permission type Application is "Not supported".

 

If that's the case, what's the appropriate way for an external service to send notifications to appear as chat messages in a Teams channel?

  • cozimek - You can send messages to Teams from external service using connectors - could you please check this docs also could you please check this sample ? try if that helps.

    • cozimek's avatar
      cozimek
      Brass Contributor

      Nikitha-MSFT thanks for the links. We've done some research on connectors, and from a usability perspective for our audience, our hope is that we can configure the destination Teams channel from our app, rather than having to have the client find the app in the Teams app store, install it, configure it, etc.  For now, I think we're looking at using inbound webhooks, but it sounds like being able to leverage Microsoft Graph API to let apps send notifications via a chat message soon.  I hope!

Resources