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
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,738 questions
{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. Prasad-MSFT 5,481 Reputation points Microsoft Vendor
    2023-06-02T06:36:29.5666667+00:00

    We are also able to repro the issue. In a Team Channel, we received someText with the Action.Submit action, but not with the Action.Execute button.

    //extract from request payload with Submit action

    "value": {
            "action": "submit",
            "someText": "Submit value"
        },
    
    

    //extract from request payload with Execute action

    "value": {
            "action": {
                "type": "Action.Execute",
                "id": "execute",
                "title": "Execute",
                "data": {
                    "action": "execute"
                },
                "verb": "execute"
            },
            "trigger": "manual"
        },
    
    

    We have raised a bug for the same. We will inform you once we get any further update from engineering team. Thanks!

    Thanks, 

    Prasad Das

    ************************************************************************* 

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link


  2. Jacob B 0 Reputation points
    2023-06-02T11:09:21.32+00:00

    We are experiencing the exact same thing. Started yesterday with an app that's been running great for a year. Same issue - the Execute action does not post the input fields back to the server.

    What we did discover however, is that it works if we run Teams via Google Chrome - but not Firefox, Edge or the desktop app.

    Seems like Microsoft changes something here?

    Has anybody seen any official posts on this?


  3. Tomlinson, Sean 5 Reputation points
    2023-06-05T15:06:24.67+00:00

    Thought I was going crazy here, app was working one day and broken the next. Experiencing the same issue, data from associated inputs when action.execute is called from a card in a Teams Channel does not flow through. This only works in a personal chat.


  4. Sebastian Nowacki 0 Reputation points
    2023-06-28T09:06:32.6266667+00:00

    MS Team, can sb take a look on this issue? It's blocking our development. Do you have any automation tests for this area? How is it possible that some feature works fine and suddenly is broken completely? Any ETA for fix?