Forum Discussion

anishabhyankar's avatar
anishabhyankar
Brass Contributor
Sep 18, 2023

Image inserted in incoming webhook is not working for new Teams version.

I am trying to insert an image into an incoming webhook using adaptive card and message card. But it is not displaying in the new Microsoft Teams version (23217.806.2340.1703.).

 

 

But this is working on Old Teams version 1.6.00.24078 (64-bit).

 

 

I am using below sample code to display this card.

{
    "type": "message",
    "attachments": [
        {
            "contentType": "application/vnd.microsoft.card.adaptive",
            "contentUrl": null,
            "content": {
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                "type": "AdaptiveCard",
                "version": "1.5",
                "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"
                    }
                ]
            }
        }
    ]
}

 

Please reply if you have any solution to this issue or have any suggestions.

 

Thanks,

  • We are also able to repro this issue, we will check internally and get back to you.
      • Meghana-MSFT's avatar
        Meghana-MSFT
        Icon for Microsoft rankMicrosoft

        We raised a bug for the same, we will keep you posted on the updates. Thank you.

         

        Thanks, 

        Meghana

        ---------------------------------------------------------------------------------------------------------- 

        If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

  • matthewrydzik's avatar
    matthewrydzik
    Copper Contributor
    We're also experiencing the same issue. This is a blocker for us switching to new teams.
    • emilSociuu's avatar
      emilSociuu
      Copper Contributor
      Several of my clients are having the same issue and is a course of great frustration. Any news on this?
      • Meghana-MSFT's avatar
        Meghana-MSFT
        Icon for Microsoft rankMicrosoft
        Apologies for the inconvenience caused to you. Unfortunately, we do not have any ETA to share with you. We will keep you posted on the updates. Thank you.
  • dlinncr's avatar
    dlinncr
    Copper Contributor
    We are also experiencing a this issue in our teams app. No images are showing in adaptive cards in 'New Teams'.
  • tatitati's avatar
    tatitati
    Copper Contributor

    To address this, you might want to check the image URL's format, ensure it's publicly accessible, and verify if it follows Teams' adaptive card image guidelines. If issues persist, reaching out to Teams support or checking their community forums for any reported bugs could provide additional insights

  • fusenyc's avatar
    fusenyc
    Copper Contributor

    Any updates? We just switched to the new Teams software and noticed the exact same issue. Was working fine.

     

    Other notifications using legacy format still works. Just not the images in adaptive card. 

     

    Meghana-MSFT Is there a workaround for this? The bug couldn't have broken all the image URLs I assume? Otherwise wouldn't this be a top priority bug?

    • fusenyc's avatar
      fusenyc
      Copper Contributor
      I've switched to inlining base64 encoded image data instead, which works on adaptive card.
  • javierqf's avatar
    javierqf
    Copper Contributor
    Any updates on this? This is very important for our controlling processes. We have several products in production which need this to work. Thank you in advance.
  • Todd1561's avatar
    Todd1561
    Copper Contributor

    I'd like an update on this as well.  MS is pushing "New Teams" very aggressively but not prioritizing bugs like this.  It's been over 3 months at this point with no resolution in sight.

    • Meghana-MSFT's avatar
      Meghana-MSFT
      Icon for Microsoft rankMicrosoft
      Apologies for the inconvenience caused to you. The fix is being rolled out. We will update you once the fix reaches public rings.
      • krodturntown's avatar
        krodturntown
        Copper Contributor
        +1 Having this issue, causing headaches. Please update this thread when fixed.
  • remisauvat's avatar
    remisauvat
    Copper Contributor

    Meghana-MSFT

    I have the opposite issue.

    We are using Teams on the Web and the images stopped rendering correctly on Jan 9th 2024 for adaptive cards posted using incoming webhook.

     

    I use SVG images hosted on an public GCS bucket. This was working on monday 8th

    And now it look like this:

    Are svg images not supported in the New Teams ?

Resources