Hi everyone,
I am facing an issue while working on Copilot Studio.
Scenario :
I am trying to retrieve details of people from Office365 users and I am using DisplayName as the searchterm.
As , people might have similar first names. I am making it such that Copilot gives a list of names to choose from.
I took the value array that was given by Office365 and using concat() , converted it to a comma separated string.
Like This ,
Concat(Topic.value,DisplayName,",")
It looked as follows
XYZ,PQR,ABC
I have a Power Automate Flow , which takes this as input. and returns a string as below , which I have stored inside a variable "SampleChoiceData"
[{“title”:“DisplayName1”,“value”:“1”},{“title”:“DisplayName2”,“value”:“2”},{“title”:“DisplayName3”,“value”:“3”},{“title”:“DisplayName4”,“value”:“4”},{“title”:“DisplayName5”,“value”:“5”},{“title”:“DisplayName6”,“value”:“6”},{“title”:“DisplayName7”,“value”:“7”},{“title”:“DisplayName8”,“value”:“8”},{“title”:“DisplayName9”,“value”:“9”},{“title”:“DisplayName10”,“value”:“10”}]
Now , I want to insert this into my adaptive card.
#### Adaptive Card JSON #######
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "Please choose an option:",
"weight": "Bolder",
"size": "Medium"
},
{
"type": "Input.ChoiceSet",
"id": "main",
"isVisible": true,
"style": "compact",
"choices": [
"${SampleChoiceData}"
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"data": {
"action": "submitChoice"
}
}
]
}
But my adaptive card just turns out BLANK.
I am working on this for a few days now , but I am stuck ! , Please help
I have attached a sample of adaptive card as reference , for better understanding of what I am doing,
If any queries , please feel free to reply