question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microsoft.Bot.Components.AdaptiveCards - OnDataQuery trigger doesn't work as expected

See original GitHub issue

Describe 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

  1. 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

  2. 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:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
JuanArcommented, Oct 26, 2022

Hi @ramfattah! Do you want to assign me the issue and we’ll add it to our backlog and tackle it next week.

Thanks!

1reaction
ramfattahcommented, Oct 26, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adaptive card doesn't trigger topic in PVA #9277
Create a PVA bot and reuse the Enterprise Assistant Bot 'Bot Tour' dialog; It sends the initial card; Click on 'Calendar' or 'People'...
Read more >
Solved: When Someone Responds to an Adaptive Card Trigger
Solved: Hello all, I have tried looking through other resources and have searched the community, but I cannot seem to find a response....
Read more >
Add card actions in a bot - Teams
Teams does not support the potentialActions property. Card actions are different than suggested actions in Bot Framework or Azure Bot Service.
Read more >
Universal Action Model - Adaptive Cards
The universal Bot action model is introduced in the Adaptive Cards schema version 1.4. In order to use these new capabilities, the version ......
Read more >
Teams Adaptive Card Not Opening Custom URI within ...
I've created a message with a button to call a custom URI which will open a local program, this functionality works in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found