Controlling what's displayed in the activity feed from a webhook using Adaptive Cards

Copper Contributor

I have a webhook set up to post messages in a teams channel.  If using a simple json post like below, it will display the title and text in the channel and the summary in the feed.

{
  "title" : "This is my title",
  "summary" : "This is my summary",
  "text": "This is text"
}
However, if I make an adaptive card, I can't seem to control what gets displayed in the feed (aka summary).  All it displays is "Card".
 
This is the payload I'm using.  Neither of the summary properties gets displayed.
 
{
   "type":"message",
   "summary": "This is my summary (does nothing)",
   "attachments":[
      {
         "contentType":"application/vnd.microsoft.card.adaptive",
         "summary": "this is another summary (does nothing)",
         "content":{
            "$schema":"http://adaptivecards.io/schemas/adaptive-card.json",
            "type":"AdaptiveCard",
            "version":"1.2",
            "title": "this is title in content",
            "body":[
                {
                "type": "TextBlock",
                "text": "This is text"
                }
            ]
         }
      }
   ]
}
1 Reply