Adaptive Card works on emulator but not MS Teams

Châu. Dương Hải 21 Reputation points
2022-11-25T03:23:14.963+00:00

I described bugs in detail here https://github.com/microsoft/AdaptiveCards/issues/8065

In summary, I send the adaptive json to MS Teams, it used the image url with parameters. However, MS Teams automatically added/replaced "&" with "&" which caused the image unloaded.

The original URL: "https://image-charts.com/chart?chbr=20&chco=ed421f%7C37b84c%7CA9A9A9&chd=t%3A493%2C109%2C29&chdl=Failed%7CPassed%7CSkipped&chdlp=b&chf=a%2Cs%2C00000080&chl=78%2C1%25%7C17%2C3%25%7C4%2C6%25&chli=631&chlps=color%2CFFFFFF%7Cfont.size%2C12%7CtextStrokeWidth%2C0.5&chs=700x450&cht=pd&chtt=Revenue%20per%20month&chxl=0%3A%7CJan%7CFev%7CMar%7CAvr%7CMay&chxs=1N%2AcUSD0sz%2A%2C000000%2C14&chxt=x%2Cy"
264102-image.png

The modified by MS Teams:

"https://image-charts.com/chart?chbr=20&chco=ed421f%7C37b84c%7CA9A9A9&chd=t%3A493%2C109%2C29&chdl=Failed%7CPassed%7CSkipped&chdlp=b&chf=a%2Cs%2C00000080&chl=78%2C1%25%7C17%2C3%25%7C4%2C6%25&chli=631&chlps=color%2CFFFFFF%7Cfont.size%2C12%7CtextStrokeWidth%2C0.5&chs=700x450&cht=pd&chtt=Revenue%20per%20month&chxl=0%3A%7CJan%7CFev%7CMar%7CAvr%7CMay&chxs=1N%2AcUSD0sz%2A%2C000000%2C14&chxt=x%2Cy"

Image

264085-image.png

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
945 questions
Microsoft Teams | Development
{count} votes

Accepted answer
  1. Nivedipa-MSFT 3,646 Reputation points Microsoft External Staff Moderator
    2022-11-28T07:34:05.313+00:00

    @Châu. Dương Hải - We have tested this using curl and we are able to repro your issue. We have raised the bug for the same. We will keep you posted if there are any updates.

    Thanks,
    Nivedipa


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.