0

Two compose extension commands are defined in the manifest. These trigger a request to bot framework, which responds with an adaptive card.

When the adaptive card is displayed, it's rendered correctly except the button is missing. If I send the exact same adaptive card as a chat activity, it displays correctly.

how it displays

handleTeamsMessagingExtensionFetchTask Code

// enableInboundCard = below json
const card = this.renderAdaptiveCard(enableInboundCard, { channel })

    return {
      task: {
        type: 'continue',
        value: {
          card,
          height: 500,
          title: 'Enable Inbound',
          width: 600
        }
      }
    };

Command (in manifest).

{
  "id": "enableInbound",
  "context": [
    "compose"
  ],
  "description": "Enable inbound SMS to channel",
  "title": "Enable Inbound",
  "type": "action",
  "fetchTask": true,
  "parameters": [
    {
      "name": "test",
      "title": "test",
      "inputType": "text",
      "value": "test"
    }
  ]
}

Adaptive Card

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.5",
    "body": [
        {
            "type": "TextBlock",
            "size": "Large",
            "weight": "Bolder",
            "wrap": true,
            "style": "heading",
            "text": "Enable Inbound SMS"
        },
        {
            "type": "TextBlock",
            "text": "A wholeeeeeeee bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch bunch  of txt",
            "wrap": true
        },
        {
            "type": "FactSet",
            "facts": [
                {
                    "title": "Current Channel",
                    "value": "${channel}"
                }
            ]
        },
        {
            "type": "ActionSet",
            "actions": [
                {
                    "type": "Action.Execute",
                    "title": "Enable Inbound SMS",
                    "verb": "enable_inbound",
                    "fallback": "Action.Submit"
                }
            ]
        }
    ]
}
atymic
  • 3,093
  • 1
  • 13
  • 26
  • 1
    I tested it. It seems like Action.Execute is not supported in composeExtention context. I will confirm it internally. Other action like Action.Submit is working fine – Hunaid Hanfee-MSFT Nov 17 '21 at 20:10
  • @HunaidHanfee-MSFT Isn't that the point of the fallback property? I will test with Submit :) – atymic Nov 21 '21 at 23:35
  • 1
    Right, but there's some issue with the type - Action.Execute , it's not reading that type at all. I have raised a bug the internal team is working on it. I will update you once it is fixed. – Hunaid Hanfee-MSFT Nov 22 '21 at 06:57
  • We got update from engineering team that "This is currently by design as support for ACv2 in Task Modules is not added yet." – Prasad-MSFT Mar 14 '23 at 09:28

0 Answers0