Handle responses from Adaptive Cards in Microsoft Teams using different cloud flow

  Рет қаралды 20,686

Tomasz

Tomasz

Күн бұрын

Пікірлер: 73
@soyebmalek1536
@soyebmalek1536 2 жыл бұрын
Great video ! I was looking for this feature as standard from Action in Power Automate. Thank you for sharing this
@fzawadi
@fzawadi 2 жыл бұрын
Great Info and hopefully in the future it will improve. Thanks 👍
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
I am glad reading that :)
@francescopatella30
@francescopatella30 2 жыл бұрын
Great Video! Is it possible to explain what was inserted into the First function?
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
Which first function? Can you share the time?
@pardaillec8781
@pardaillec8781 4 ай бұрын
"When someone responds to an Adaptative card" seems to be a disabled trigger
@TomaszPoszytek
@TomaszPoszytek 4 ай бұрын
I don't see any such information: learn.microsoft.com/en-us/connectors/teams/?tabs=text1%2Cdotnet#when-someone-responds-to-an-adaptive-card
@homerggg2
@homerggg2 Жыл бұрын
In the latest Power Automate version, the "When someone reply to an adaptive card" trigger now has a Body property and no "Card Type Id" property. But there is a new tab called Parameters and there's a Tracking Id in that tab. Is that the field we need to use in place of "Card Type Id" ?
@TomaszPoszytek
@TomaszPoszytek Жыл бұрын
Nope, that unfortunately seems to be a bug of the new PA designer :( When you switch to the old version all is in place.
@cikforest7136
@cikforest7136 6 ай бұрын
@@TomaszPoszytek This haven't been fix yet, right? Still need to use old PA design
@DarrenCarlson-zv6ec
@DarrenCarlson-zv6ec 5 ай бұрын
@@TomaszPoszytek But when I switch to the old version, I cannot past the card json into that field. I tested with a very basic text string and can past but can't paste the full card definition. Such a useful function with really bad documentation. Not your fault clearly. I'm just frustrated that I cannot figure out how to replicate what you've done. So I figured out how to get the json in there. Apparently I had a data definition it didn't like. But even with the json in there, I get nothing in the Dynamic content popup in my next Compose step. It seems to be completely ignoring the trigger content and I don't understand why. I have nothing but the trigger with valid json and card type id. It's only two fields. How can I screw it up? lol. But no dynamic content. Is there something silly obvious I'm missing?
@mariome3178
@mariome3178 2 жыл бұрын
Doens't work for me unfortunately. As soon as I set the Card Type ID I get error "Environment id is null or empty" :(
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
What is sending you the card in the first place?
@LauraLuisaRosenberg
@LauraLuisaRosenberg 2 жыл бұрын
Hello, I still have problems with the trigger "When someone responds to an adaptive card". If I click on the card myself, the flow is triggered, if another user clicks on this card then not. The flows are both in the default. I don't understand why it doesn't respond to the others' responds?Maybe someone can help me?
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
As far I know the trigger is still in preview. Maybe this is the reason. Basically it should let you get responses to the card that was sent by you, but completed by anyone else.
@godeleinpatrick
@godeleinpatrick 2 жыл бұрын
hey there, why aren't you showing and explaining the expression you are using and filter area ?
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
Which step is unclear?
@godeleinpatrick
@godeleinpatrick 2 жыл бұрын
@@TomaszPoszytek I see you were using the expression First() yet you never explained that clearly. My advice is that you should always time to expand and explain each step.
@DarrenCarlson-zv6ec
@DarrenCarlson-zv6ec 5 ай бұрын
I've been trying for days to make this work and I'm clearly doing something wrong in my adaptive card json. It does not seem to matter how I structure the {data} it's not showing in Dynamic content. I initially had my Actions outside of the body which properly generated the card but didn't show dynamic data. So I restructured my json to create an ActionSet inside the body like Tomasz did and it still doesn't work.
@TomaszPoszytek
@TomaszPoszytek 4 ай бұрын
Hey, as far I know you are not able to use dynamic data in AM. It can only display fixed data, that is within the card itself.
@Kranis86
@Kranis86 Жыл бұрын
@TomaszPoszytek Thanks for a great video! I can´t however grab the response value from the user in the response flow (when someone responds to an adaptiv card). Flow is triggered, but the cardOutputs property is empty. Any idea why?
@TomaszPoszytek
@TomaszPoszytek Жыл бұрын
Oh, there may be many reasons. For example, you are referencing wrong ID in the response body - not related to a field, that you want to send data from. Or that it is not escaped. Or, or or :)
@DarrenCarlson-zv6ec
@DarrenCarlson-zv6ec 5 ай бұрын
This is awesome. In the Get Response flow, could you not generate a new adaptive card and wait for a response? Or generate a regular ac and then use a second Get Response flow to respond to to what was input? My use case is generating a few (less than 6) ACs at initial SP list item creation. User will dismiss or Request details. Dismiss would end the initial Get Response flow. Choosing Details will result in a second card that has a field for comments and an approve/reject choice.
@TomaszPoszytek
@TomaszPoszytek 4 ай бұрын
I haven't tried it myself tbh... For sure, whatever you post from ACs and is received by a flow underneath, must receive a response, so that ACs is not displaying any error message. However I haven't tried to submit one card, receive a response with another card, that can be submitted as well. No idea if that would work.
@JordanMatas
@JordanMatas Жыл бұрын
Hi Thomasz ! Thank you for this helpful video. IS there a way to "listen" an updated adaptive card ? I don't figure out how to pass the Card Type Id to the action "Update an adaptive card in chat or channel". Thanks !
@TomaszPoszytek
@TomaszPoszytek Жыл бұрын
The Card Type Id is for the trigger "When someone responds to an Adaptive Card": kzbin.info/www/bejne/aIurp2OilJuKa7M&ab_channel=TomaszPoszytek
@chasethecw
@chasethecw 3 ай бұрын
Thank you for the video. Is there a specific way to get the dynamic content to populate? I input the JSON and it doesn't populate any dynamic content.
@TomaszPoszytek
@TomaszPoszytek 2 ай бұрын
What do you mean by dynamic content? You have to first get all the data you need to display on AC, and then format it to a valid AC JSON. But with Adaptive Cards sent from Power Automate there is no possibility to bind them to any live datasource, that will display data dynamically.
@IliaGilmijarow
@IliaGilmijarow Жыл бұрын
Great video. One note on language: "mustn't" in English is very categorical (pl nie może). It is not the same as "doesn't have to" (pl nie musi).
@TomaszPoszytek
@TomaszPoszytek Жыл бұрын
Thanks :) I'll try to memorize this :)
@chareunsritwila
@chareunsritwila 2 жыл бұрын
Hello Tomasz, Not sure if you noticed that now there is no 'Card Type ID' field under Post adaptive card to chat or Channel task. it has changed to "hosted Contents". Do you know how should we do now? Thanks!
@chareunsritwila
@chareunsritwila 2 жыл бұрын
Resolved it after read others' comments, changed to send through flowbot then the Card Type ID appears and it works perfect. Thanks a lot for the video and guidance.
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
Glad you made it work ☺️
@momosworkshop
@momosworkshop 2 жыл бұрын
What if I'm not able to see the "show advanced options" on my post action? Can I set the ID another way?
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
No, unfortunately not. It means that the update possibly haven't reached your tenant yet.
@momosworkshop
@momosworkshop 2 жыл бұрын
I noticed that if I post the card as flow bot I do get the option, but not if I post as a user.
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
@@momosworkshop ah yes. This option is only available when you post it as flow bot.
@momosworkshop
@momosworkshop 2 жыл бұрын
@@TomaszPoszytek it's unfortunate because my enterprise doesn't give access to posting as flow bot, so it really limits what I'm able to do with adaptive cards
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
@@momosworkshop oh how's that possible? Can this be limited? I didn't know.
@kyleadammason
@kyleadammason Жыл бұрын
Hello Tomasz, maybe you can help me. I created a card in the card designer to get a text string response. In my card I put some dynamic content but when I use the cards code in the listener trigger I get an error. Do you know if dynamic content is allowed to be used in the post card and in the listener card? After removing the dynamic content it works fine but that limits the trigger since I would need to have more entry data into the card. Any suggestions are welcome. Thank you.
@TomaszPoszytek
@TomaszPoszytek Жыл бұрын
Do you mean the „when someone responds to an adaptive card” trigger? If yes, then you can’t put any dynamic content there.
@kyleadammason
@kyleadammason Жыл бұрын
@@TomaszPoszytek yes, I found that out. For anyone having the same issue just paste the card design in the listener trigger and then delete the dynamic content and it works fine. I didn't know if they had to match perfectly for it to work.
@JakobElfner
@JakobElfner Жыл бұрын
@@kyleadammason Were you able to work with the dynamic content afterwards in other actions? For me, it does not work out :/
@kyleadammason
@kyleadammason Жыл бұрын
@@JakobElfner yes I was. I think the only thing you can really work with are items from the card output section. You can always add things to that by adding data to buttons using the adaptive card designer tool. The format for data goes like this " "title": "data" ". Use this in your card that is being sent and it should show up as something you can use in your listening card.
@InsaneFilms
@InsaneFilms 11 ай бұрын
Tomasz- You mentioned you were hoping that MS comes up with new actions to update/refresh the card. Have they done that yet? Thanks
@TomaszPoszytek
@TomaszPoszytek 11 ай бұрын
Yes, there is such an action. It allows you to update a card, and must be used in combination with trigger „when someone responds to adaptive card”.
@TomaszPoszytek
@TomaszPoszytek 11 ай бұрын
FINALLY! Learn how to update (or replace) an Adaptive Card sent to Microsoft Teams kzbin.info/www/bejne/aIurp2OilJuKa7M
@davymoyon6893
@davymoyon6893 Жыл бұрын
Does anyone get a "Unable to reach app. Please try again" when trying to submit the response in Teams?
@TomaszPoszytek
@TomaszPoszytek Жыл бұрын
Are you using default environment?
@davymoyon6893
@davymoyon6893 Жыл бұрын
@@TomaszPoszytek yes, I have a single environment
@kirankumar-ux2he
@kirankumar-ux2he 8 ай бұрын
Hi Tomasz Thanks for sharing the amazing content, but why is it only functioning in the Default Environment? Even after so many years, this trigger hasn't been upgraded to Dev and Production Environments.
@TomaszPoszytek
@TomaszPoszytek 8 ай бұрын
Yes, exactly. But as for the reason - I really have no idea.
@SteveRist
@SteveRist 2 жыл бұрын
Hi Thomasz. Really useful video and a great pattern. Unfirtunatley ( and I think this is a common issue) the flow that is triggered by"When someone responds to an adaptive card" doesn't fire for me even though the adaptive card json and Card Type Id are the same as in teh invoking flow. I also note that we can now update a card.
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
Remember it has to be created in a default environment and not in a solution...
@martinvasek2081
@martinvasek2081 2 жыл бұрын
@@TomaszPoszytek Wow, this is confusing from Microsoft. Just to clarify more, default envitonment is really "default environment of your company" (!). It can't even be created out of solution in enviroment of your project/department/division etc. Very strange and this should be written somewhere with huge text and 10times underlined :-))... took 3 hours of my life.
@kakis57
@kakis57 2 жыл бұрын
Hello. I am wondering if you can help me as i am desperate. I have a bot posting the adaptive card to a user. However when the user clicks submit, I get the error "the initiator is not a member of the roster in the generic thread". I believe that happens because the Flow bot initiates the chat with the user and when I try to update the card i use my own account so i get the above error. Do you have any workarounds for that? Thank you in advance!! Great videos!
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
Thank you. As per the solution - maybe the childflow, that runs using specific account, would be a solution, so that always a card and the update will happen using the same account?
@ashleysummerell7583
@ashleysummerell7583 2 жыл бұрын
Hi Tomasz, hoping you can help, i have copied your part of the adaptive card JSON underneath the Action.Submit for the hidden data, i know in yours you have the Team and Channel ID, in mine im looking to carry through a SharePoint list ID so i can update a row in a SharePoint list with outputs from the adaptive card but i cant seem to find it on the second cloud flow Original Card when input is given { "type": "ActionSet", "id": "ActionSet2", "actions": [ { "type": "Action.Submit", "title": "Submit", "associatedinputs": "auto", "style": "positive", "data": { "ListID": "@{outputs('Create_item_2')?['body/ID']}" } } ] } Outputs i get from the second flow triggered when there is a response to the adaptive card which is from my input.text box }, "cardOutputs": { "inputComments": "Test Comments" }
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
Remember to include headers and authentication properties. This may be the reason.
@JakobElfner
@JakobElfner Жыл бұрын
Did you find a solution? I am having the same issue.
@divyakabra734
@divyakabra734 Жыл бұрын
Hi Tomasz, Nice info. Will this work if adaptive card is posted through microsoft graph API?
@TomaszPoszytek
@TomaszPoszytek Жыл бұрын
It will not.
@Ainibi-j9j
@Ainibi-j9j 2 жыл бұрын
Hello, great video. I have a logic app in azure environment with a adaptive card .And the response adaptive card is in power automate. Will it still work ? Or does both have to be in power Automate ? Because when I run the logic app in azure, it says error “ environment id is null or empty “. Could you kindly give your input ?
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
Thanks! Which action is in Power Automate and which in Logic Apps?
@Ainibi-j9j
@Ainibi-j9j 2 жыл бұрын
@@TomaszPoszytek I haven’t got notifications of your reply. Thank you for replying back. The response is in power automate ( the one you have explained ) and the trigger is in logic app( where it post the adaptive card with card type id same as in the one in power automate ). I get environment id null or empty. Thank you again
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
@@Ainibi-j9j well since it is triggered from Logic Apps there's no environment context, so that doesn't surprise me...
@Ainibi-j9j
@Ainibi-j9j 2 жыл бұрын
@@TomaszPoszytek is there anyway to make it work ?
@TomaszPoszytek
@TomaszPoszytek 2 жыл бұрын
@@Ainibi-j9j i don't know tbh. Maybe some kind of workaround is to create a cloud flow triggered by http and use it from your logic app, to actually post Adaptive Card?
@rjjalosjos9454
@rjjalosjos9454 Жыл бұрын
How do you close the adaptive card when submit is pressed? It's very weird that it stays in the teams chat.
@TomaszPoszytek
@TomaszPoszytek Жыл бұрын
Using the "Reply with Adaptive Card in a channel". Unfortunately you can't make it in a private conversation with user.
Microsoft Teams: Use Adaptive Cards to Connect People to Process
13:40
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Power Automate flows: Licensing, Ownership, and API Limits
13:10
Reza Dorrani
Рет қаралды 20 М.
Actionable Messages step-by-step
24:35
Tomasz
Рет қаралды 31 М.
Getting started on building Microsoft Teams tabs with Adaptive Cards
18:51
Microsoft Community Learning
Рет қаралды 3,9 М.