Hi @sajarac,
Apologies, I was confused with the expression language in the Bot Framework Composer topics.
For adaptive cards within Power Automate cloud flows you could simply use the Power Automate expression language.
Below is an example of that.
In this example I use a title (which has the car name) column of a the first item of a SharePoint list and the AutoType choice field value (it can be either Car or Truck) of that same item. These are retrieved via a Get Items action.
Within the image control I check if the value equals Car. If that is true I show a Car icon, otherwise a Truck icon.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "@{body('Get_items')['value'][0]['Title']}",
"wrap": true
},
{
"type": "TextBlock",
"id": "acAutoType",
"text": "@{body('Get_items')['value'][0]['AutoType/Value']}",
"wrap": true
},
{
"type": "Image",
"url": "@{if(equals(body('Get_items')['value'][0]['AutoType/Value'], 'Car'), 'https://www.iconpacks.net/icons/1/free-car-icon-1057-thumb.png', 'https://www.iconpacks.net/icons/1/free-truck-icon-1058-thumb.png')}"
}
],
"spacing": "None"
}