Forum Discussion
SudhishSoman
Mar 13, 2023Copper Contributor
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...
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.
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.
Nivedipa-MSFT
Mar 23, 2023Microsoft
SudhishSoman - You can use the above-mentioned graph API only in migration not general purpose.