Input.ChoiceSet is not initialized after executing Action.Execute in Adaptive Cards.

green 76 Reputation points
2023-06-26T03:07:15.6466667+00:00

Input.ChoiceSet is not completely initialized after executing Action.Execute in Adaptive Cards.

This issue occurs in Teams for Windows and Teams for Web.

Teams version: 1.6.00.16472 (64 bit)

  1. Select Input.ChoiceSet value.
  2. Click Action.Execute button.
  3. The internal value of Input.ChoiceSet is initialized, but the apparent value remains.

my adaptive card:

{  
      "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",  
      "version": "1.4",  
      "type": "AdaptiveCard",  
      "body": [  
          {  
              "type": "Input.ChoiceSet",  
              "id": "id1",  
              "style": "filtered",  
              "value": "v",  
              "choices": [  
                  {  
                      "title": "a",  
                      "value": "a"  
                  },  
                  {  
                      "title": "b",  
                      "value": "b"  
                  }  
              ],  
              "choices.data": {  
                  "type": "Data.Query",  
                  "dataset": "d"  
              }  
          }  
      ],  
      "actions": [  
          {  
              "data": {  
                  "test": "test"  
              },  
              "title": "Execute",  
              "type": "Action.Execute"  
          }  
      ]  
  }
Microsoft Teams | Development
{count} votes

2 answers

Sort by: Most helpful
  1. Nivedipa-MSFT 3,851 Reputation points Microsoft External Staff Moderator
    2023-07-28T05:58:03.9233333+00:00

    @green - We tested this again, after clicking second time on Action.Execute we are not getting Input.ChoiceSet value.

    We have raised a bug for the same. We will let you know once we get any updates on it.

    0 comments No comments

  2. Nivedipa-MSFT 3,851 Reputation points Microsoft External Staff Moderator
    2023-08-23T10:43:20.5133333+00:00

    @green - This issue has already been fixed.

    Adaptive card in MS Teams now returns input field data using Action. Execute within a channel.

    Tested in MS Teams desktop (Microsoft Teams Version 1.6.00.20958) and web client.

    "value": {
            "action": {
                "type": "Action.Execute",
                "id": "execute",
                "title": "Execute",
                "data": {
                    "action": "execute",
                    "someText": "qwerty"
                },
                "verb": "execute"
            },
            "trigger": "manual"
        },
    
    0 comments No comments

Your answer

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