
Announcements
I would like to include a randomly selected gif to a TEAMS message. The downloaded gifs are currently stored in a Sharepoint document library (but open to suggestions). The resources I have found previously use links to websites but those do not display correctly on my teams message. Thank you for your assistance!
In case anyone stumbles on this thread and has similar issue this is how I got it to work using Adaptive Cards.
*Make sure the gif size is small from the web
Adaptive Card format-
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "Happy Birthday <at>@{outputs('Employee_Email')}</at>!",
"style": "heading",
"wrap": true
},
{
"type": "TextBlock",
"text": "@{variables('message')[rand(0, length(variables('message')))]}",
"wrap": true
},
{
"type": "Image",
"url": "@{variables('randomgif')[rand(0, length(variables('randomgif')))]}"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.5"
}
Which is an animated random gif and saying in teams =