I suspect this is too advanced for what Adaptive Cards can do, but I'm asking here to be sure and get alternative ideas if people have any.
My workplace has a process in effect where we must complete a health check before we're permitted to work onsite. The resulting email confirms to our manager whether we are fit to work onsite or not.
I would like to show an Adaptive Card in our MS Teams group chat that will prompt team members to confirm whether they pass or fail the health check and send the relevant email to the team manager.
Is this possible, and if not, are there any alternative approaches that might work?
I've provided a simple answer that demonstrates the possibilities but you'll need to take it further for your own scenario.
For a start, this is the JSON of the card, it's simple but again, it can be built on using the card designer (https://adaptivecards.io/designer/) ...
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "Health Check Result"
},
{
"type": "TextBlock",
"text": "Did you pass the health check?",
"wrap": true
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Yes",
"style": "positive",
"id": "Yes"
},
{
"type": "Action.Submit",
"title": "No",
"style": "destructive",
"id": "No"
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2"
}
As for the action, you need to set it up like this ...
... then when it comes through to Teams and the user makes their selection ...
... you'll be able to deal with the response with relative ease ...