I was so excited when they added the "For Selected Message" trigger! I've got a flow that uses an adaptive card in teams and then creates a planner task, but I'm having two issues I hope you all can help me solve:
(1) The For Selected Message trigger has an output field with the link to the Teams message. I would like update the task details with that link to the teams message, but I'm getting a Bad Request error when it runs with this message:
| | "The request is invalid:\r\nOne or more property annotations for property 'https%3A//teams%2Emicrosoft%2Ecom/l/message/19%3A89acc2aff144463090a8bc72624ab4f2' were found in the complex value without the property to annotate. Complex values must only contain property annotations for existing properties." |
Not sure how to resolve this--the link works just fine if I paste it into a browser!
(2) I would like to use the adaptive card to select who should be assigned the task in Planner (ideally with the ability to select multiple assignees). Anyone know of a way to do this? I tried to use Input.ChoiceSet with multi selection turned on and then have the person select a name, which would return the e-mail addresses for the persons selected, which I could then do an apply to each and pull the person's user ID based on e-mail and update the task to assign that ID to the task. But, I'm noticing a couple things, the card output doesn't show the e-mail (only the person's name) and when I did an apply to each, it gave me an error that the output was a String. I'm new to adaptive cards, and not sure how to fix this! Here is my adaptive card card code for the selection:
{
"type": "Input.ChoiceSet",
"spacing": "None",
"placeholder": "Select from these choices",
"choices": [
{
"title": "User 1 Last, First",
"value": "user1@company.com"
},
{
"title": "User 2 Last, First",
"value": "user2@company.com"
},
{
"title": "User 3 Last, First",
"value": "user3@company.com"
},
],
"id": "assignedto",
"isMultiSelect": true,
"separator": true
}
],