Why isn't Action.Execute including Input Values when operating within a channel?

Ryan Fowler 50 Reputation points
2023-05-31T16:03:37.4+00:00

I have the following Adaptive Card:

{
  contentType: "application/vnd.microsoft.card.adaptive",
  content: {
    type: "AdaptiveCard",
    version: "1.5",
    body: [
      {
        type: "Input.Text",
        id: "someText",
        value: "1",
        maxLength: 100,
      }
    ],
    actions: [
      {
        type: "Action.Submit",
        title: "Submit",
        id: "submit",
        verb: "submit",
        data: {"action": "submit"},
      },
      {
        type: "Action.Execute",
        title: "Execute",
        id: "execute",
        verb: "execute",
        data: {"action": "execute"}
      }
    ],
}       

If I click either button in personal chat with a bot, the bot receives a value for someText as I'd expect.

In a Team Channel, I receive someText with the Action.Submit action, but not with the Action.Execute button. Action.Execute was working a few weeks ago.

How do I use the Action.Execute action type and also receive Input values from the Card?

Microsoft Teams Development
{count} votes

Accepted answer
  1. Matt Phillips 75 Reputation points
    2023-07-31T13:14:10.3466667+00:00

    After 2 months of it not working, this is now working for me.


5 additional answers

Sort by: Most helpful
  1. Tomlinson, Sean 5 Reputation points
    2023-07-05T15:09:18.0566667+00:00

    I have raised an issue on github: https://github.com/OfficeDev/TeamsFx/issues/9223

    Hopefully Microsoft are more responsive there.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.