'Send a card to microsoft Teams with data from external database

How can I best send message from my c # code to A teams channel, In my code I retrieve data from an external database And want to show this data using a card in my teams "team"... Does it work to use an incoming webhook or do i need to build a bot?



Solution 1:[1]

You can create a Incoming webhook and call it using HTTP Client from your C# code.

Bot is not required to only send the data to Teams channel. https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ChetanSharma-msft