web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using Adaptive Cards C...
Power Automate
Unanswered

Using Adaptive Cards Choice Response to Create Variable for Condition and Reply to Adaptive Card

(0) ShareShare
ReportReport
Posted on by 22

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"
}
]
}

Categories:
I have the same question (0)
  • BradyMason Profile Picture
    22 on at

    I should mention after the Adaptive Card, I currently have Set Variable>Condition>True/False

    I just don't know if I need the variable and if I do I don't know how to fetch the choice value result to set it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard