Microsoft.Bot.Components.AdaptiveCards - OnDataQuery trigger doesn't work as expected
See original GitHub issueDescribe the bug
OnDataQuery trigger from Microsoft.Bot.Components.AdaptiveCards package doesn’t start when Data.Query activity received from adaptive card.
Version
Tested on 1.3.0, 1.4.0 Composer version - 2.1.2
To Reproduce
-
Send adaptive card containing Input.ChoiceSet with dynamic typeahead search to user as described in this example: https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/dynamic-search?tabs=mobile%2Cjson#example
-
On user side start typing something in ‘Multi-Game’ field. As a result ‘Data.Query’ activity will be sent to the bot.
Expected behavior
The trigger should start when Data.Query activity received from adaptive card.
Additional context
I think the issue is related to https://github.com/microsoft/botframework-components/blob/main/packages/AdaptiveCards/Triggers/OnDataQuery.cs
line 64:
Expression.Parse($"{TurnPath.Activity}.name == 'adaptiveCard/action'"),
The activity which bot receives from adaptive card contains different name :
"value": { "queryText": "test", "queryOptions": { "skip": 0, "top": 15 }, "dataset": "xbox" }, "name": "application/search",
Issue Analytics
- State:
- Created a year ago
- Comments:6
Hi @ramfattah! Do you want to assign me the issue and we’ll add it to our backlog and tackle it next week.
Thanks!
Hey @JuanAr, we are able to reproduce this issue.
I shared the steps to repro in above discussion, please let me know if you have any questions. Thanks