Adaptive Cards + Webhooks
We NEED webhooks to support Adaptive Cards. MessageCards are not flexible enough!
We are happy to announce that we now have support for posting Adaptive Cards via Incoming Webhooks in developer preview!
You can try it out with any of your favorite HTTP request composer tools (PowerShell/Postman/Fiddler) using Message Activity format with https://docs.microsoft.com/microsoftteams/platform/task-modules-and-cards/cards/cards-reference#adaptive-card attachment.
Please keep providing feedback on other features you’d like to see. We will post further updates as we have them.
For those that have been getting the 400 error, I was able to get an updated example that worked for me over in GitHub. https://github.com/MicrosoftDocs/msteams-docs/issues/2091#issuecomment-696716217
Using Adaptive Cards as an attachment in a message kinda works but it uses only half the screen realestate that the legacy MessageCard uses. How can I make the Adaptive Cards attachment use the whole screenspace in TEAMS?
We're still getting the 400 bad request here as well, too. So close!
Still getting 400 bad request. When this will be supported ?
Any word if HTTP Post will be supported?
James Sutherland commented
Should mentions work in adaptive cards via webhook? I can send the card okay, but mentions aren't working - the name displays in a different colour, but no notification is generated, and I don't get user info hovering over it. I'm using the format 9:orgid:<guid> for the user ID but it seems like it's not working.
For people getting the summary or text needed response, by the way, you need to send a message with an adaptive card as an attachment. You can't send the card directly, e.g:
i am still getting "summary or text needed" 400 responses, even using the official "sample" card, sending the request through postman.
Great news Alex!!! Can't wait to try it out!
Matt Hankosky commented
@arttu, I did the same thing, Spent the last 3 hours writing a script in our CRM system to build an Adaptive Card and boom, wont work in Teams :(.
Glad to hear that this feature is finally in the backlog. Like many others, I too spent hours of implementing Adaptive Cards for Teams Connector just to find out it doesn't work. The only positive here is that I didn't go around my colleagues ranting how awesome Adaptive Cards are.
So can we expect it in Q2 2020? @Alex ?
how is this not a thing yet. Literally have an entire flow from external app to teams and adaptive card and only found this with some hours of googling.... why tell people to develop for adaptive cards if the most useful place to use them is incompatible
We need adaptive cards for webhooks!
Really hope this gets more visibility. This has been "on the backlog" for like years now.
Adaptive Cards 1.2 are GA in Microsoft Teams (February 11, 2020)
Nice, but sadly connectors are still not included :-/
+1 to petition, webhook should support Adaptive Cards!
It's super inconvenient, and not even very well documented that webhooks don't support AdaptiveCards.
When you follow the docs for webhooks, you end up here: https://docs.microsoft.com/en-us/outlook/actionable-messages/send-via-connectors. There's a brief mention of AdaptiveCard not being supported, but that's the only place. All the links point to a the playground, where AdaptiveCard is front and center. The actual MessageCard page refers to it as Legacy.
Trying to find confirmation of this is basically a google journey that gets you here via a comment in a StackOverflow post.
Please either get this feature in or better document that MessageCards are the required way to go.
In the meantime, it feels like I'm creating a good amount of technical debt in creating MessageCards for integrations when I'll likely have to re-do them as AdpativeCards later.
The adaptivecard-designer doesn't even support the messagecard-format (anymore?). This is so inconvienient.
I igree, it's very limited
+1 - spent time creating a an adaptive card and found it isn't supported as webhook payload.