Forum Discussion

moransh's avatar
moransh
Copper Contributor
Dec 02, 2022

Adaptive/Hero card Action.Submit/Button {type: "imBack"} not working on PC

Hi, I'm using graph API to send an Adaptive card or Hero card (tried both) containing a number of options, listed as buttons. and require the text value of the button to be sent back through the chat as if the user sent it.

 

adaptive_card = {
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
        "type": "AdaptiveCard",
        "version": "1.5",
        "actions": [
            {
                "type": "Action.Submit",
                "title": "Submit",
                "data": {
                    "msteams": {
                        "type": "imBack",
                        "value": "Get Order Status"
                    }
                }
            }
        ]
    }

card = {
        "subject": None,
        "body": {
            "contentType": "html",
            "content": "<attachment id=\"xxxxxxxxxxxxxxx\"></attachment>"
        },
        "attachments": [
            {
                "id": "xxxxxxxxxxxxxxx",
                "contentType": "application/vnd.microsoft.card.adaptive",
                "content": json.dumps(adaptive_card)
            }
        ]
   }

 

When pressing the button on the adaptive card on the mobile app it works as expected, when pressing the button on the PC MS-teams app it does nothing.

    • moransh's avatar
      moransh
      Copper Contributor

      here is a snippet from the log, hope it helps.

      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] useSlotConfigCallbacksAndCustomProperties: Entity options are (incorrectly) being asked for type and action that do not pertain to the entity. chats != chats or view != share, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462173852, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27307440, freeMemory: 4515139584, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] useSlotConfigCallbacksAndCustomProperties: Entity options are (incorrectly) being asked for type and action that do not pertain to the entity. chats != chats or view != share, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462173852, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27328756, freeMemory: 4515135488, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] useSlotConfigCallbacksAndCustomProperties: Entity options are (incorrectly) being asked for type and action that do not pertain to the entity. chats != chats or view != share, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462173870, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27367856, freeMemory: 4514861056, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] useSlotConfigCallbacksAndCustomProperties: Entity options are (incorrectly) being asked for type and action that do not pertain to the entity. chats != chats or view != share, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 1, scenarioDelta: 1, elapsed: 462173871, stepDelta: 1, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27382976, freeMemory: 4514861056, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462173887, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27439248, freeMemory: 4514861056, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462173887, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27453968, freeMemory: 4514861056, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462174072, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27507816, freeMemory: 4424298496, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462174072, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27522680, freeMemory: 4424298496, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462174155, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27567368, freeMemory: 4419440640, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462174155, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27582344, freeMemory: 4419440640, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462174185, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27603896, freeMemory: 4415299584, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462174185, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27618616, freeMemory: 4415299584, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] chatServiceSubscriptionContainer: convId: 19:<Email>, replyChainId: -1:: cachedMessages is undefined!, status: success,  scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462174200, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27638720, freeMemory: 4415324160, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] chatServiceSubscriptionContainer: convId: 19:<Email>, replyChainId: -1:: cachedMessages is undefined!, status: success, , scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 1, scenarioDelta: 1, elapsed: 462174201, stepDelta: 1, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27653440, freeMemory: 4415324160, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462179444, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27732856, freeMemory: 4287361024, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462179444, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27747992, freeMemory: 4287361024, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success,, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462179591, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27823664, freeMemory: 4286967808, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success,  scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462179591, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27838384, freeMemory: 4286963712, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: start, sequence: 0, delta: 0, scenarioDelta: 0, elapsed: 462179841, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27883952, freeMemory: 4284620800, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0,  
      <11088> -- event -- eventpdclevel: 1, errorMessage: https://: line 23: CID[main] ChatPane: consumption horizons mismatch with members - membersConsumptionHorizonLength:1 otherConsumptionHorizonsLength:0 membersLength:2, status: success, scenarioName: experience-renderer-console-error, name: experience-renderer-console-error, step: stop, sequence: 1, delta: 0, scenarioDelta: 0, elapsed: 462179841, stepDelta: 0, Scenario.Mode: 1, AppInfo.Language: en-us, complianceEnvironmentType: 0, isDataCategorizationEnabled: true, userpdclevel: 0, processMemory: 27898816, freeMemory: 4284604416, clientType: desktop, AppInfo.ClientType: desktop, batterylevel: 1, pluggedin: true, Window.Focus: foreground, windowIsVisible: true, Window.Status: systray, UserInfo.TimeZone: +02:00, vdiMode: 0, 
      • Meghana-MSFT's avatar
        Meghana-MSFT
        Icon for Microsoft rankMicrosoft
        We tried by sending the above share adaptive card json directly via bot and it is working fine on web and Desktop app. Can you please share doc that you are following for sending the above card using json.dumps(adaptive_card) via Graph API.

Resources