Hi, hope I'm posting this in the right place as I don't see a board specifically for adaptive cards.
I have a flow which takes an email and isolates some text values which are then used in an adaptive card in Teams.
the part of the card which displays the text looks like this:
{
"type": "TextBlock",
"spacing": "None",
"text": "PLAN: @{outputs('splitPlan')}",
"isSubtle": true,
"wrap": true
},
I'd like to set the colour to red if the value of @{outputs('splitPlan')} contains specific strings - either the output contains 'premium' or 'dedicated'
I've been trying to add a 'color' line something like
"color": "${if(@{outputs('splitPlan')}) contains('premium'|'dedicated'), 'attention', 'good')}",
any help appreciated!