Forum Discussion

TCF_SAHA's avatar
TCF_SAHA
Copper Contributor
Jul 25, 2023

Message Card Action Buttons not working consistently

We have a little solution that is in use with hundreds of customers around the globe and so far all worked fine, until lately.

 

But the last days we get tickets from customers complaining, that their two action buttons (see sample video: 2 buttons - left the "Call back" button with a phone number and on the right side the "Task completed" button) on the message card are both visible but stopped to work properly.

 

If you click the "Call back" button on the left, no issues occur and it works always, but you if you click the right one, it doesn't work anymore unless you do a little "workaround" (see video). The customers claim that if they right click and then left click and click once more on the same button, it starts working again - which is every strange.

 

The strange thing is if the same message card with the same buttons/functions is used on the same Teams client with the same customer, but in another Teams channel, it works without an issue. We have seen this being the case with many customers, where they have dozens of channels where it works fine, but in one it doesn't work (thus, the issue is reproduceable), unless you do this workaround. The buttons use always the same functions, and the message card is received via a webhook, the functions are always online and as we said it's only specific channels the other work fine.

 

Do you have any ideas? Let me know if you need more information but looks like this issue is spreading among our customers. The issue is not related to the Teams client, whether you use the browser version of Teams, or the Windows App does not matter, and the result is the same.

 

Any help is appreciated, we are a bit lost, as the functions are ok, JSON data is ok and no errors in Azure functions appear. The firewall or proxy cannot be the issue as it works on the same client in another channel without problems.

 

Meghana-MSFT 

12 Replies

  • Meghana-MSFT's avatar
    Meghana-MSFT
    Bronze Contributor

    Thank you for reporting this, we will check this and get back to you. Can you please share the card JSON that you are using so that it would be easy for us to repro this.

    • TCF_SAHA's avatar
      TCF_SAHA
      Copper Contributor

      Thank you for your answer, Meghana-MSFT.

      Sure, please find the JSON below:

      {
        "@context": "https://schema.org/extensions",
        "@type": "MessageCard",
        "themeColor": "FFB900",
        "title": "Missed call from <PHONE_NUMBER>",
        "text": "Name: <CALLER_NAME>, Mobil [Shared Mailbox]<br>  Voice Apps: Voice App 1, Voice App 2 <br> Date: 27.07.2023 <br> Time: 10:10 ",
        "potentialAction": [
          {
            "@type": "OpenUri",
            "name": "Call <PHONE_NUMBER>",
            "targets": [
              {
                "os": "default",
                "uri": "https://teams.microsoft.com/l/call/0/0?users=<PHONE_NUMBER>"
              }
            ]
          },
          {
            "@type": "HttpPOST",
            "name": "Task completed",
            "target": "<APP_URI>/<ACTION>?code=<TOKEN_CODE>",
            "body": "{\r\n \"Number\": \"<PHONE_NUMBER>\", \"messageCardDate\": \"27.07.2023\", \"messageCardTime\": \"10:10\", \"localTimeZone\": \"W. Europe Standard Time\", \"callerLookupName\": \"<CALLER_NAME>, Mobil\",  \"language\": \"ger\", \"voiceAppName\": \"Voice App 1, Voice App 2\"\r\n}",
            "headers": [
              {
                "Content-Type": "application/json"
              }
            ]
          }
        ]
      }

Resources