Adaptive Cards
2 TopicsAdaptive Card "Only Show When" based on string value containing
I have an adaptive card that I'm using in Power Automate. The source is from a SharePoint list that has a multiple choice field that can contain any combination of "Facebook", "Twitter", and/or "Instagram". The adaptive card has a section for each icon to appear based on if the "Platform" value contains the corresponding value (e.g., Facebook icon appears if the Platform value contains "Facebook"). I can't seen to get the syntax correctly so that the icon only appears when the value contains the correct platform. With my current coding, the icons appear regardless of the value. Any thoughts? See attached image. But the current code is: "items": [ { "type": "Image", "size": "Small", "spacing": "None", "url": "https://i.imgur.com/FM5R4eW.png", "id": "Instagram_Image", "$when": "$contains(\"@{body('Join_PLATFORMS')}\",\"Instagram\")" }SolvedHow To Create A Basic Adaptive Card and Post It To Teams
This tutorial will demonstrate how to use the adaptive card designer to create a basic adaptive card consisting of static text and a clickable button with an embedded Url. It will also demonstrate how to post an adaptive card to a channel in Microsoft Teams using Microsoft Power Automate. This tutorial is intended to introduce adaptive cards and how they can be utilized in Microsoft Teams and Power Automate for simple use cases such as posting reminder messages. https://youtu.be/BGlrKBTJIKU4.8KViews0likes0Comments