Forum Discussion
Keerthi_sh2085
Feb 06, 2024Copper Contributor
HTTP POST request to incoming webhook with valid adaptive card json payload returns a 200 with error
Hi, We have been using incoming webhook with Adaptive card for quite a few years now and we started noticing a valid adaptive card json has started returning 200 with error "Webhook message delivery...
Prasad_Das-MSFT
Microsoft
Feb 06, 2024Keerthi_sh2085 - We are able to repro this issue. We have raised a bug for the same. We will inform you once we get any further update from engineering team.
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
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.
- Keerthi_sh2085Jul 05, 2024Copper ContributorHi,
Is there any update on this.
Best,
Keerthi- Prasad_Das-MSFTSep 27, 2024
Microsoft
Keerthi_sh2085 , In the provided JSON the
TextRun
elements have emptytext
properties. This might cause issues. Also, many elements haveisVisible
set tofalse
. TheActionSet
elements have emptyactions
arrays.Below updated JSON works properly:
{ "type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive", "contentUrl": null, "content": { "$schema": "https://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.2", "msteams": { "width": "Full" }, "body": [ { "type": "Container", "bleed": false, "minHeight": "0px", "style": "default", "verticalContentAlignment": "center", "items": [ { "type": "TextBlock", "size": "large", "style": "heading", "wrap": true, "text": "Heading Text" } ] }, { "type": "ColumnSet", "columns": [ { "type": "Column", "items": [ { "type": "RichTextBlock", "inlines": [ { "type": "TextRun", "text": "Status: ", "wrap": true, "fontType": "monospace" }, { "type": "TextRun", "text": "Active", "wrap": true, "color": "default", "weight": "bolder", "fontType": "monospace" } ] } ] }, { "type": "Column", "items": [ { "type": "RichTextBlock", "inlines": [ { "type": "TextRun", "text": "Actor: ", "wrap": true, "fontType": "monospace" }, { "type": "TextRun", "text": "John Doe", "wrap": true, "size": "medium" } ] } ] } ] }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "style": "emphasis", "minHeight": "40px", "items": [ { "type": "TextBlock", "text": "The minimal message!", "wrap": true } ] } ] } ] } } ] }
Result:
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
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.
- Keerthi_sh2085Oct 20, 2024Copper Contributor
Prasad_Das-MSFT If i read the Teams documentation right, MS teams supports adaptive cards spec. So when i try out the payload in this page https://adaptivecards.io/designer/, with the empty text in TextRun property and isVisible set to false, it says its a valid schema and also shows the rendered view. This was working before and now its not. Does this mean adaptive cards is no longer fully supported in Teams ?
- Prasad_Das-MSFTJul 08, 2024
Microsoft
Keerthi_sh2085 - Apologies. Currently we don't have any exact ETA to share. Engineering team is investigating the issue, and we will inform you once we have any update. Thanks!