I am building an adaptive card that waits for a response with choices to fetch a variable input entered by a user. I am unsure of how to pass this choice back to automate to @ mention another user if "Yes" is selected from the choice. Has anyone done this before? This is what I have so far. I've got all the steps needed with When a new email arrives>Initilize Variable>Get@mention(for initial posting)>Get@mention(for the person that would get one if "yes" is selected>Post an Adaptive card and wait for a response>
The next part is where I am unsure I thought of using a Condition to send a reply with an @mention but don't know how to either convert and set the response to the variable I made earlier or to enter it directly into the condition. Any suggestions?
JSON below
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Appointment Booked For @{triggerOutputs()?['body/from']}",
"id": "Title",
"spacing": "Medium",
"horizontalAlignment": "Center",
"size": "ExtraLarge",
"weight": "Bolder",
"color": "Accent"
},
{
"type": "TextBlock",
"text": "@{triggerOutputs()?['body/subject']}",
"id": "acHeaderTagLine",
"separator": true
},
{
"type": "TextBlock",
"text": "Notify Accounting?",
"weight": "Bolder",
"size": "ExtraLarge",
"spacing": "None",
"id": "acHeader"
},
{
"type": "TextBlock",
"text": "@{outputs('Get_@mention_token_for_Onboarding')?['body/atMention']}: Instructions before Responding: Blah blah blah",
"id": "acInstructions",
"wrap": true
},
{
"type": "TextBlock",
"text": "Notify Accounting?",
"id": "acQuestion"
},
{
"type": "Input.ChoiceSet",
"placeholder": "Select from these choices",
"choices": [
{
"title": "Yes, Notify Accounting",
"value": "1"
},
{
"title": "No, this is an exception",
"value": "0"
},
],
"id": "acChoices",
"style": "expanded"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"id": "btnSubmit"
}
]
}


Report
All responses (
Answers (