Forum Discussion

MoezT's avatar
MoezT
Copper Contributor
Mar 04, 2022

Bots posted a new message

We are in the process of consolidating a number of different alerting systems into Teams. This requires us to interact with the incoming webhook of channels. What we're finding is that on macOS/Windows/Web, notifications of an adaptive or message card show "Bot posted a new message" along with the name of the channel.

However, on mobile devices the notification will show the content of "summary" from the JSON payload. Is there any reason why this doesn't behave the same way on desktop devices and the web-based Teams app?

    • andrea-busyrooms's avatar
      andrea-busyrooms
      Copper Contributor
      Sayali-MSFT Any update on this by any chance, please? Within the connector message, we already have the "summary" field, so that when this issue is fixed, the notification will contain this very helpful information.
      • Sayali-MSFT's avatar
        Sayali-MSFT
        Icon for Microsoft rankMicrosoft

        andrea-busyrooms - Sorry for the delay.
        We are checking the status of the fix release with the engineering team. We will let you know once we have any updates on it. Thanks.

  • MoezT's avatar
    MoezT
    Copper Contributor
    Just in case anyone is still paying attention, the "new" Microsoft Teams version that just came out still has this same issue.
  • RigidDesign's avatar
    RigidDesign
    Copper Contributor

    MoezT we also just implemented Teams integration, and I stumbled across your post whilst looking for the same thing.

     

    It seems odd that it doesn't just use the same "summary" property.

    • MoezT's avatar
      MoezT
      Copper Contributor

      RigidDesign Yeah, what's odd is that it seems like it worked before and something changed last year.

      • RigidDesign's avatar
        RigidDesign
        Copper Contributor
        Yeah, I've stumbled across posts that seem to indicate it's been broken for a while ☹️
  • MoezT -We are not able to repro the scenario. Could you please share the repro steps and Adaptive Card Json, so we are try it from our end?

    • MoezT's avatar
      MoezT
      Copper Contributor

      Sayali-MSFT Create an inbound webhook for a channel and then send this JSON to that channel. The notification will show something like the screenshot below instead of showing the summary test.

       

      {
          "type":"message",
          "summary": "This is a test",
          "attachments":[
             {
                "contentType":"application/vnd.microsoft.card.adaptive",
                "contentUrl":null,
                "content":{
                   "$schema":"http://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)"
                       },
                       {
                           "type": "Image",
             "url": "https://adaptivecards.io/content/cats/1.png"    
                       }
                   ]
                }
             }
          ]
       }

       

       

      • jeremyjh's avatar
        jeremyjh
        Copper Contributor
        Sayali-MSFT if this isn't going to be fixed please just tell us so I can move us back to Slack. This bug completely breaks Teams for usage as any kind of chat-ops tool.
  • We got the reply from engineering teams that Right now the behavior is by design that banner in desktop/website contains only the thread info, and mobile push notification contains summary as well. These behaviors are consistent crossing different scenarios including incoming webhook, mention, channel and so forth.

     
    So if you are looking for the behavior consistency for banner, it should be an intake of desktop notification team.

    Could you please help by suggesting this feature on - Microsoft Teams · Community 
    • MoezT's avatar
      MoezT
      Copper Contributor

      A year and a half just to say "It's not our issue, talk to someone else". Shame on you, Microsoft. Sayali-MSFT 

    • RigidDesign's avatar
      RigidDesign
      Copper Contributor

      There is ABSOLUTELY no chance that it is ignoring the summary line being set and it setting it to...

      Bots posted a new message

      ...is by design. Absolutely not. This was raised 18 months ago and was clearly forgotten about. Whoever was just asked clearly did not even read this properly or investigate it.

       

      Anyone still using this definitely needs to stop using this functionality and create your own pish notifications as this is a lost cause.

      • P2SCH's avatar
        P2SCH
        Copper Contributor

        RigidDesign totally agree. I can't imagine a world were this is supposed to be by design. 

        just please bring it in.

        my users are frustrated because they have to open teams everytime a new message comes in, just to see that it might not be relevant to them this time.

  • amelieluecke's avatar
    amelieluecke
    Copper Contributor

    After Microsoft deprecated Webhooks I am facing the same issue. Is there still no update on this?

    • MoezT's avatar
      MoezT
      Copper Contributor

      amelieluecke This was technically resolved through the Teams app team. Having said that, I haven't had a chance to test the new Power Automate webhook setup. Does that reintroduce the same behaviour?

      • amelieluecke's avatar
        amelieluecke
        Copper Contributor

        MoezT Unfortunately yes. With the new Workflows setup it is necessary to use Adaptive Cards to post messages to Teams channels. I use the predefined workflow 'Post to a channel when a webhook request is received'. The channel posts itself look nice but the notifications all look the same:


        My Adaptive Card definition looks like the following. I haven't found a way to set the notifications text. Setting "summary" doesn't change anything.

         

            {
                "type": "message",
                "attachments": [
                    {
                        "contentType": "application/vnd.microsoft.card.adaptive",
                        "contentUrl": None,
                        "content": {
                            "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                            "type": "AdaptiveCard",
                            "version": "1.2",
                            "body": [
                                {
                                    "type": "TextBlock",
                                    "size": "medium",
                                    "weight": "Bolder",
                                    "color": "Accent",
                                    "text": f"{title}",
                                    "style": "heading",
                                    "wrap": True
                                },
                                {
                                    "type": "TextBlock",
                                    "text": f"{alert.message}",
                                    "separator": True,
                                    "wrap": True
                                },
                            ]
                        }
                    }
                ]
            }

         

Resources