Search code examples
microsoft-graph-apimicrosoft-teamsadaptive-cards

Is it possible to create a message in a Microsoft Teams Channel via Graph API using an Adaptive Card format (seems limited to Text and HTML)


I'm attempting to create a message in a Teams channel via the Graph API. Teams now supports adaptive cards but it seems we are still limited to either plain text or HTML when creating the message via Graph API (either v1 or beta). Anyone found a way to create this message using Adaptive Cards? https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/itembody


Solution

  • Via Microsoft Graph, no, not yet. But via the Bot Framework APIs, yes, and it's available today.

    More info here: https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/cards/cards#cards-in-bots