Forum Discussion

anaas1070's avatar
anaas1070
Copper Contributor
Jan 03, 2022

Want to post adaptive card data to/from my website

I have a custom app for MS Teams and I want to submit adaptive card to my website and also want to send notifications from my website to particular teams channels. How can I implement this using teams bot?

  • anaas1070 - Webhooks are a great way for Teams to integrate with external apps. You can send Adaptive Card, Hero card, and text messages as attachment with Outgoing Webhook.

    A webhook is essentially a POST request sent to a callback URL. In Teams, outgoing webhooks provide a simple way to allow users to send messages to your web service without having to go through the full process of creating bots via the Microsoft Bot Framework.
    Reference Document:- Create an Outgoing Webhook - Teams | Microsoft Docs

    https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/outgoing-webhook/csharp

    • anaas1070's avatar
      anaas1070
      Copper Contributor

      Hey Sayali-MSFT, It is a good solution and I have already tried this and it works fine. But I'm creating a bot and want this functionality dynamically. I just want to install that bot in different channels to perform this action. And don't want to create webhooks manually but I want my bot to do this.

      Also I want to send notifications from my website to a teams channel where my bot is installed.

      • Sayali-MSFT's avatar
        Sayali-MSFT
        Icon for Microsoft rankMicrosoft

        anaas1070- Currently we do not have this functionality dynamically. We need to create webhooks manually and send the Adaptive Card, Hero card, and text messages as attachment with Outgoing Webhook.

        Thanks,
        Sayali

        ----------------------------------------------------------------------------------

        If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

Resources