AdaptiveCard sent via webhook to Teams when searching in channel displays "Card - access it on https://go.sykpe.com/cards.unsupported."

Jeremy Welch 21 Reputation points
2022-06-03T02:08:17.083+00:00

I have a teams channel with a webhook configured and I am sending a basic AdaptiveCard

{  
   "type":"message",  
   "attachments":[  
      {  
         "contentType":"application/vnd.microsoft.card.adaptive",  
         "contentUrl":"null",  
         "content":{  
            "$schema":"https://adaptivecards.io/schemas/adaptive-card.json",  
            "type":"AdaptiveCard",  
            "version":"1.2",  
            "body":[  
                {  
                "type": "TextBlock",  
                "text": "For Samples and Templates, see [https://adaptivecards.io/samples](https://adaptivecards.io/samples)"  
                }  
            ]  
         }  
      }  
   ]  
}  

The card displays fine within the channel itself but when searching the channel - CMD/CTRL + F - all results displayed are just returning "Card - access it on https://go.sykpe.com/cards.unsupported."

207965-screen-shot-2022-06-02-at-70509-pm.png

Has anyone else experienced this issue? Any ideas on what the issue may be?

Microsoft Teams Version 1.5.00.12661

Microsoft Teams Development
{count} votes

Accepted answer
  1. Prasad-MSFT 8,981 Reputation points Microsoft External Staff Moderator
    2022-06-03T05:56:52.687+00:00

    We are able to repro the issue. We have used the provided JSON to send adaptive card to Teams channel using Incoming webhook.
    The card got posted successfully in channel, but on searching its returning "Card - access it on https://go.sykpe.com/cards.unsupported."

    208132-capture.png

    We are checking it with engineering team if its expected or not. We will inform you once we get any Update. Thanks!


1 additional answer

Sort by: Most helpful
  1. Eric Pastoor 0 Reputation points
    2023-12-21T16:44:54.4933333+00:00

    I had this same issue. I was able to fix it by providing a valid subject in the json payload. Change your json to look like this:

    {  
       "type":"message",
       "subject":"Your Subject",
       "attachments":[  
          {  
             "contentType":"application/vnd.microsoft.card.adaptive",  
             "contentUrl":"null",  
             "content":{  
                "$schema":"https://adaptivecards.io/schemas/adaptive-card.json",  
                "type":"AdaptiveCard",  
                "version":"1.2",  
                "body":[  
                    {  
                    "type": "TextBlock",  
                    "text": "For Samples and Templates, see [https://adaptivecards.io/samples](https://adaptivecards.io/samples)"  
                    }  
                ]  
             }  
          }  
       ]  
    }
    

Your answer

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