Forum Discussion
sunnykalola
Jul 31, 2020Brass Contributor
Is there any way to make an API call using any of the botFramework supported cards?
- I have gone through this link https://adaptivecards.io/samples/FoodOrder.html but, I am not able to understand when the button of type "Action.Submit" of an adaptive card is clicked.
- Is it possible to make Http call using any of the botFramework supported cards. If yes, then can you please give any reference for the same.
2 Replies
- Bill BlissFormer Employee
sunnykalola Teams does not support https:// calls from Adaptive Cards directly for security reasons (except for OpenUrl).
You have to add additional information to the button and specify the behavior you want in more detail. See here for more information: https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-actions#adaptive-cards-actions
- Eliot_ColeIron Contributor
I still don't understand why a Viva adaptive card (which can be used in Teams) can make API calls, but an Adaptive Card in Teams ... ... cannot. 😅