Forum Discussion

SudhishSoman's avatar
SudhishSoman
Copper Contributor
Mar 13, 2023

Using Application Authentication for Sending Messages to Teams Channel

Hello everyone,

 

I'm currently working on a C# application that needs to send messages to a Teams channel. I was wondering if it's possible to use application authentication to achieve this? If so, could anyone please share some sample code or documentation on how to do this?

 

Thank you in advance for your help.

    • SudhishSoman's avatar
      SudhishSoman
      Copper Contributor
      Hi,

      Thank you for your response to my previous message regarding sending messages to a Teams channel using C# code. I tried using the API endpoint you suggested with application authentication, but it showed an error stating that POST messages are only allowed in application-only context for import purposes.

      Additionally, I also tried delegated authentication which always required user interaction to generate a token.

      Thank you again for your assistance in this matter.

Resources