-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incoming Webhook not working with AdaptiveCard #11222
Comments
Hi @miguelc1221 - Could you please try sending the same JSON using POSTMAN or cURL and verify if that works or not? We tried sending the below JSON using POSTMAN and it worked fine.
|
@Prasad-MSFT Hey, I get the same error when using postman, only MessageCards work. I followed these docs to create a webhook https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook?tabs=newteams%2Cdotnet. Any idea if it's possible my org has any settings not allowing this? The error message doesn't make sense if that is the case. |
@miguelc1221 - This is quite strange as this works perfectly fine at our end. Also, could you please let us know if this issue is specific to this particular card JSON or is it happening with any card JSON? |
@Prasad-MSFT It happens with any AdaptiveCard Json, only works with MessageCards |
Hi @Prasad-MSFT I encountered the same issue here. When using Adaptive Card json, it shows that the type must be AdaptiveCard, and I changed it from "messaage" to "AdaptiveCard", and it will pop up error like there must be Summary or Text, things like that. I was using a python script to send this post request to my incoming webhook, and it also reproduce with the REST API tools like Postman, etc. I have changed to MessageCards but I got this warning all the time. Thanks! |
@hachi1030-Allen , this entire feature is being removed in July-August 2024. |
Hi @Prasad-MSFT , so you meant that the incoming webhook will be removed totally from Teams connector is that correct? Thanks, |
None of connector will work after 1st of October. You can still use current connectors until that date. Until 15th of August there is possibility to create new connectors. |
Steps to reproduce
Hi, not sure if this is a bug but incoming webhook is not working with adaptivecard (It works fine with MessageCard). I created an incoming webhook using the connector (I know it will be deprecated soon). Instead it is returning
"AdaptiveCards.AdaptiveSerializationException: Property 'type' must be 'AdaptiveCard'"
. Here is what my request looks likeExpected behavior
Should send an AdaptiveCard to channel
Actual behavior
It's not sending an AdaptiveCard and instead returning an error message.
Error details
"AdaptiveCards.AdaptiveSerializationException: Property 'type' must be 'AdaptiveCard'"
The text was updated successfully, but these errors were encountered: