Forum Discussion
Adaptive Card button should return "MessagingExtensionActionResponse"
- Sep 03, 2021
Hi, I don't think you can can trigger OnTeamsMessagingExtensionFetchTaskAsync() on submit of adaptive card button. This method is invoked when we try to trigger messaging extension. https://docs.microsoft.com/en-us/dotnet/api/microsoft.bot.builder.teams.teamsactivityhandler.onteamsmessagingextensionfetchtaskasync?view=botbuilder-dotnet-stable
Messaging extension can only be triggered from compose box, search bar or message actions. You can refer below document.
https://docs.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/what-are-messaging-extensions#:~:text=The%20invoke%20locations%20are%20compose,the%20next%20interaction%20to%20enable.
Thanks
Hi, I don't think you can can trigger OnTeamsMessagingExtensionFetchTaskAsync() on submit of adaptive card button. This method is invoked when we try to trigger messaging extension. https://docs.microsoft.com/en-us/dotnet/api/microsoft.bot.builder.teams.teamsactivityhandler.onteamsmessagingextensionfetchtaskasync?view=botbuilder-dotnet-stable
Messaging extension can only be triggered from compose box, search bar or message actions. You can refer below document.
https://docs.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/what-are-messaging-extensions#:~:text=The%20invoke%20locations%20are%20compose,the%20next%20interaction%20to%20enable.
Thanks