So your adaptive card choice set is going to look something like this... "choices": [ { "title": "Option 1", "value": "Option 2" }, { "title": "Option 2", "value": "Option 2" } ] Then when you get the adaptive card response you'll need to parse it and create the appropriate JSON to pass to whatever action you're using to update the SP list item. JSON will be handy if you're using the HTTP Request to SharePoint action. If you're doing something more simple, maybe parsing the responses and then setting a variable with the selected choice value would be good enough to pass into an Update or Create list item action.
Thank you for this video! @bulbdigital I was wondering if there's a way to have the data on the adaptive card be dynamic. For a task status update card, when I manually trigger a flow where for a selected item an adaptive card is posted on the Teams channel, I have the assignees and status displayed on the adaptive card. When I change the status of the SP List item on Lists, is it possible to change it on the adaptive card as well? Sorry for the long question but I have been looking everywhere and couldn't find anything that helps. Thanks!
Yes, you can do this. It of course depends on your Teams chat scenario (Channel, Group Chat, etc.) but essentially you can use the Teams action, "Update an adaptive card in a chat or channel". In order to get your scenario to work, you'll need to first grab a conversation id from your chat. I know you can get this from a Group Chat, not sure off the top of my head if you can get it from a Channel chat. Then use the "Post adaptive card and wait for a response" action and point it at the Group Chat (Conversation Id). Then you can create an "updated version" of the Adaptive Card content (JSON) and use the "Update an adaptive card in a chat or channel", again pointing it at the same conversation id. Note that this scenario assumes a single flow that does everything. You can do this with separate flows, with different triggers, provided you store the Conversation Id somewhere where the subsequent flows can retrieve and use it.
Thanks! 😁 I walked through creating an adaptive card in a Power Automate flow in the Post Adaptive Card and Wait action (9:41) in the video. The action prior to that is a Create Chat action. Basically, when the item is submitted, we are initializing a chat in Teams, and then Posting the Adaptive Card in that chat.
Hi All, I have created a flow to send adaptive cards to multiple user and wait for the response and the flow is sending cards but problem is adaptive cards are showing up sequentially. Once the first user provides their response, the Flow will continue by sending the same card to the second user, then it will wait for that user to respond, and so on. However if I change the concurrency control I'll have maximum 50 parallel branches. But what should be the approach if I need to get response from more than 50 users???
There are probably a couple patterns for how you can do this. The one we recommend would be to create two flows and put them into a solution. This will enable the use of child flows. The first flow should accept a user's email address as an input. This flow will send the adaptive card and collect the response. The second flow will use a loop with concurrency control maxed out to call the first (child) flow. The first flow should respond to the calling flow prior to sending the adaptive card. This pattern will allow all of the adaptive cards to be sent in something close to parallel. The other challenge to deal with is what to do with the responses. If the goal is simply to gather a response from every user, then you're done. If you need to gather all responses and then do something collectively with them, you'll need to implement some sort of plan to store the responses somewhere that you can aggregate them after they're all collected. A SharePoint list might be a good place to store these.
has anyone got any experience of creating adaptive cards to interact with 3rd party tools - especially ServiceNow ? (for instance - to show "my items" or "to do")
ServiceNow has a premium connector in the Power Platform. I have not used it myself, but presumably you could use this connector to do just what you're asking. There are even some template flows in Power Automate that you could start from. There are a couple templates that are pretty close to what you're describing... powerautomate.microsoft.com/en-us/connectors/details/shared_service-now/servicenow/
Hi BulbDigital, I am facing a problem with my adaptive card. I am getting 'Something went wrong. Please try again' error on first click. On again, clicking it immediately gets successful. This leads to triggering of my flow twice. How to fix this timeout error?
Great Video. Always grateful for people like you who help learn beginners like me.
We are happy to help! Thanks for the kind words 😁
Great overview, thanks. Was missing out on the adaptive card building tool and was lost inside the power apps card builder
No problem Briton, glad we could help!
Great Video! How do you save the input of a multiple Choice to a SharePoint list?
So your adaptive card choice set is going to look something like this...
"choices": [
{
"title": "Option 1",
"value": "Option 2"
},
{
"title": "Option 2",
"value": "Option 2"
}
]
Then when you get the adaptive card response you'll need to parse it and create the appropriate JSON to pass to whatever action you're using to update the SP list item. JSON will be handy if you're using the HTTP Request to SharePoint action. If you're doing something more simple, maybe parsing the responses and then setting a variable with the selected choice value would be good enough to pass into an Update or Create list item action.
Thank you for this video! @bulbdigital
I was wondering if there's a way to have the data on the adaptive card be dynamic. For a task status update card, when I manually trigger a flow where for a selected item an adaptive card is posted on the Teams channel, I have the assignees and status displayed on the adaptive card.
When I change the status of the SP List item on Lists, is it possible to change it on the adaptive card as well?
Sorry for the long question but I have been looking everywhere and couldn't find anything that helps. Thanks!
Yes, you can do this. It of course depends on your Teams chat scenario (Channel, Group Chat, etc.) but essentially you can use the Teams action, "Update an adaptive card in a chat or channel".
In order to get your scenario to work, you'll need to first grab a conversation id from your chat. I know you can get this from a Group Chat, not sure off the top of my head if you can get it from a Channel chat.
Then use the "Post adaptive card and wait for a response" action and point it at the Group Chat (Conversation Id).
Then you can create an "updated version" of the Adaptive Card content (JSON) and use the "Update an adaptive card in a chat or channel", again pointing it at the same conversation id.
Note that this scenario assumes a single flow that does everything. You can do this with separate flows, with different triggers, provided you store the Conversation Id somewhere where the subsequent flows can retrieve and use it.
Great video! How does it give a prompt to user after responding/submitting?
Thanks! 😁 I walked through creating an adaptive card in a Power Automate flow in the Post Adaptive Card and Wait action (9:41) in the video. The action prior to that is a Create Chat action. Basically, when the item is submitted, we are initializing a chat in Teams, and then Posting the Adaptive Card in that chat.
Hi All,
I have created a flow to send adaptive cards to multiple user and wait for the response and the flow is sending cards but problem is adaptive cards are showing up sequentially. Once the first user provides their response, the Flow will continue by sending the same card to the second user, then it will wait for that user to respond, and so on.
However if I change the concurrency control I'll have maximum 50 parallel branches. But what should be the approach if I need to get response from more than 50 users???
There are probably a couple patterns for how you can do this. The one we recommend would be to create two flows and put them into a solution. This will enable the use of child flows. The first flow should accept a user's email address as an input. This flow will send the adaptive card and collect the response. The second flow will use a loop with concurrency control maxed out to call the first (child) flow. The first flow should respond to the calling flow prior to sending the adaptive card. This pattern will allow all of the adaptive cards to be sent in something close to parallel. The other challenge to deal with is what to do with the responses. If the goal is simply to gather a response from every user, then you're done. If you need to gather all responses and then do something collectively with them, you'll need to implement some sort of plan to store the responses somewhere that you can aggregate them after they're all collected. A SharePoint list might be a good place to store these.
How was the power automate build?
Sorry for the late response here, is there a specific question about it? It's pretty basic with a "post adaptive card to a team channel" action.
Hi, can we pass HYPERLINK over teams via power automate so as to Navigate to SharePoint list
Yes, you could do this!
@@BulbDigital How?
You should be able to set one of the actions of the adaptive card to open a url
has anyone got any experience of creating adaptive cards to interact with 3rd party tools - especially ServiceNow ? (for instance - to show "my items" or "to do")
ServiceNow has a premium connector in the Power Platform. I have not used it myself, but presumably you could use this connector to do just what you're asking. There are even some template flows in Power Automate that you could start from. There are a couple templates that are pretty close to what you're describing...
powerautomate.microsoft.com/en-us/connectors/details/shared_service-now/servicenow/
Hi BulbDigital,
I am facing a problem with my adaptive card. I am getting 'Something went wrong. Please try again' error on first click. On again, clicking it immediately gets successful. This leads to triggering of my flow twice. How to fix this timeout error?
Sorry for the late response here, it's hard to say what's going on without some more info on the specific error being thrown.