Adaptive Cards can publish a message in Teams with further information and customized actions. In my case, I use an Adaptive Card to publish a message in a Teams channel via Power Automate when a new post is published on a SharePoint page.
In my example, the message includes a link to the post and an image. The image is the banner image of the post, selected via Stock Images. It works perfectly with the new Teams, Teams Classic, Teams on the web, and Teams Mobile.
Now, I am publishing another post with an uploaded picture.
The Adaptive Card image is displayed correctly in Teams Classic but not in the new Teams and Teams Mobile.
Teams Classic and Teams Classic on the web | New Teams, Teams on the web and Teams Mobile |
---|---|
An analysis of Teams on the web shows that the new Teams adds a “&v=1” at the end of the picture URL. The system does not allow the method and cannot display the image.
Another error message with the new Teams can be “302 found”. The image is available at the location. Without “&v=1” or with “?v=1” it could open the image. I saw both responses.
Teams Classic performs the same operation, does not add an extension to the end of the Picture URL, is not prevented from doing so, and displays the picture correctly.
Microsoft confirmed in September and November that the issue is a known bug. There is no new status.
Alternatively, you can add the image as a base64 string instead of a URL. I describe a possibility via PowerShell in this post.
Update from January 10, 2024:
A fix has been rolled out, read the latest update on that topic.
I can confirm that it works for newly published posts with the new Teams and version 23335.219.2592.8659 (preview) and also with Teams on the web. In my case posts from the past still do not show the image via the URL.