Reputation: 11
I have an adaptive card which displays a list of pipelines in a choice set, I want to use the value of the selected pipelines as a messageback to teams on selecting the submit button. How can I access the value of the id of Input.Choiceset?
This is the snippet for Submit Action -
"actions": [
{
"type": "Action.Submit",
"title": "Execute",
"data": {
"msteams": {
"type": "messageBack",
"text": "" (Choiceset value here)
}
}
}
]
This is the Choiceset snippet -
{
"type": "Input.ChoiceSet",
"id": "pipelineSelect",
"choices": "${list}",
"placeholder": "pipelines"
}
Upvotes: 1
Views: 1603
Reputation: 10844
There was a recent answer to a similar question that might help. Check out How to echo user select optionset from ChoiceSet using messageBack or imBack? . In addition, it might help to see more info on the CardAction class, as well as this blog post - see the "Card Action in Teams" section which even describes some more advanced messageBack options.
Upvotes: 1