Hi,
I'm using 'post adaptive card and wait for a response'. In the card I want to use a dropdown list with choices.
The dropdown is fed by a result list that I store in an array. When it runs, the array is filled, but when clicking the dropdown, the list does not show any text?
Tried quite some different options, but they all give the same result.
- store values in an array and add the array directly to the adaptive card JSON
- used 'compose' to build up the adaptive card first and then use the output from the compose in the post message action
The generated JSON
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"speak": "<s>Overdue Item</s>",
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
}
],
"body": [
{
"type": "TextBlock",
"text": "Overdue Item",
"size": "Large",
"weight": "Bolder",
"wrap": true
},
{
"type": "TextBlock",
"text": "Due Date: ",
"isSubtle": true,
"wrap": true
},
{
"type": "TextBlock",
"text": "Created By: ",
"isSubtle": true,
"spacing": "None",
"wrap": true
},
{
"type": "TextBlock",
"text": "Status",
"wrap": true
},
{
"type": "Input.ChoiceSet",
"id": "status",
"value": "5",
"choices": [
{
"name": "Paris"
},
{
"name": "Engineering Project"
},
{
"name": "Project"
},
{
"name": "Teamspace"
},
{
"name": "Project Phase"
},
{
"name": "Munich"
},
{
"name": "Business Partner"
},
{
"name": "Master Contract"
},
{
"name": "Contract"
},
{
"name": "Uwe"
}
],
"placeholder": "Open"
}
]
}
The dropdown in the adaptive card
I reduced the array to one value each as I thought that might be the issue, but no difference.
The original array looks like:
{
"body": [
{
"ID": "21117",
"Name": "Paris"
},
{
"ID": "14960",
"Name": "Engineering Project"
},
{
"ID": "9244",
"Name": "Project"
},
{
"ID": "8590",
"Name": "Teamspace"
},
{
"ID": "9255",
"Name": "Project Phase"
},
{
"ID": "21214",
"Name": "Munich"
},
{
"ID": "11326",
"Name": "Business Partner"
},
{
"ID": "11348",
"Name": "Master Contract"
},
{
"ID": "11358",
"Name": "Contract"
},
{
"ID": "22780",
"Name": "Uwe"
}
]
}
Ideally I would have a dropdown showing the <ID - Name> on each line.
Thanks in advance!
Roel


Report
All responses (
Answers (