Adaptive Card w/Action trigger - Cannot get selection

I created an adaptive card with Action trigger. In a separate adaptive card, I created a drop down list where the user makes a section and then 'submits' the selection which triggers the adaptive card w/action trigger. It wis working, however, I cannot get the value of what was selected in the action w/trigger flow. The choices are set in the adaptive card as follows:

{
"type": "Input.ChoiceSet",
"choices": [
{
"title": "Individual",
"value": "Individual"
},
{
"title": "Corporate",
"value": "Corporate"
},
{
"title": "Foundations",
"value": "Foundations"
}
],
"placeholder": "-select-",
"id": "IdChoiceSet"
}
],

I then added the following to the step 'When a HTTP request is received' in the adaptive card w/trigger

"data": {            

"type": "object",           

 "properties": {                

"ChoiceSet": {                   

 "type": "string"                }            }        }

I initialized ChoiseSet as a variable in case that worked, but the value is blank. I have gone through examples in this discussion group and cannot figure out what I am missing. Thank you for your help!

Answers

  • Alex Wong
    Alex Wong Community All-Star
    Tenth Anniversary Facilitator 5 Kudos 5 bbcon 2025 Attendee Badge

    your specific issue is connecting the dot between the form field id to the trigger data json definition.

    your id on the form is idChoiceSet

    your trigger data json definition is ChoiceSet

    they need to match exactly.

    May want to consider using the AIAC template which allows you to do what you want to do but all within 1 flow instead of separating into 2.

    Blackbaud Community Power Platform template showcase

    image.png
  • @Alex Wong Thank you Alex!! What a silly mistake. A good reminder that sometimes you need to walk away and come back to solve the problem. I actually have gone through the AIAC template but didn't quite understand it. So I decided to take a step back and create a 2 flow process to better understand how it works. What I don't understand about AIAC is when is the adaptive card created? I don't see the json although it is probably right there and I am missing it.
  • Alex Wong
    Alex Wong Community All-Star
    Tenth Anniversary Facilitator 5 Kudos 5 bbcon 2025 Attendee Badge

    AIAC does display, process, result all in 1 flow, so Adaptive Card JSON is done by setting the variable Adaptive Card.

    image.png image.png

    Condition Perform Submitted Action checks on all paramater passed in (assuming you have some input field in the adaptive card for processing, then parameter passed in is when the submit button is clicked. So when going down the "yes" path means processing of submitted info, while going down the "no" path means it's when the tile is initially loaded.

    "yes" path will do what you want to do when submit button clicked, and then finally Set Var Adaptive Card After Success Processing.

    "no" path will gather info (if any needed to be gathered (i.e. Get Constituent, Get Gift, etc), and then Set Var Adaptive Card Display Form.

  • @Alex Wong oh, that makes sense!! I see now and understand how it runs through. I thought the adaptive card had to be set in the beginning before the paths but see how one path is to set the adaptive card and the other is the handle the information provided. Thank you for helping me to work through this!

Categories