Тёмный

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

Tomasz
Подписаться 4,3 тыс.
Просмотров 18 тыс.
50% 1

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 71   
@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 Год назад
Great Video! Is it possible to explain what was inserted into the First function?
@TomaszPoszytek
@TomaszPoszytek Год назад
Which first function? Can you share the time?
@IliaGilmijarow
@IliaGilmijarow 9 месяцев назад
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 8 месяцев назад
Thanks :) I'll try to memorize this :)
@DarrenCarlson-zv6ec
@DarrenCarlson-zv6ec Месяц назад
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 25 дней назад
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.
@DarrenCarlson-zv6ec
@DarrenCarlson-zv6ec Месяц назад
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 25 дней назад
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.
@pardaillec8781
@pardaillec8781 Месяц назад
"When someone responds to an Adaptative card" seems to be a disabled trigger
@TomaszPoszytek
@TomaszPoszytek 25 дней назад
I don't see any such information: learn.microsoft.com/en-us/connectors/teams/?tabs=text1%2Cdotnet#when-someone-responds-to-an-adaptive-card
@kirankumar-ux2he
@kirankumar-ux2he 4 месяца назад
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 4 месяца назад
Yes, exactly. But as for the reason - I really have no idea.
@InsaneFilms
@InsaneFilms 7 месяцев назад
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 7 месяцев назад
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 7 месяцев назад
FINALLY! Learn how to update (or replace) an Adaptive Card sent to Microsoft Teams ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2ZHv0l_6W5Q.html
@SteveRist
@SteveRist Год назад
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 Год назад
Remember it has to be created in a default environment and not in a solution...
@martinvasek2081
@martinvasek2081 Год назад
@@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.
@JordanMatas
@JordanMatas 8 месяцев назад
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 8 месяцев назад
The Card Type Id is for the trigger "When someone responds to an Adaptive Card": ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2ZHv0l_6W5Q.html&ab_channel=TomaszPoszytek
@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?
@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 :)
@godeleinpatrick
@godeleinpatrick 2 года назад
hey there, why aren't you showing and explaining the expression you are using and filter area ?
@TomaszPoszytek
@TomaszPoszytek Год назад
Which step is unclear?
@godeleinpatrick
@godeleinpatrick Год назад
@@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.
@homerggg2
@homerggg2 10 месяцев назад
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 10 месяцев назад
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 2 месяца назад
@@TomaszPoszytek This haven't been fix yet, right? Still need to use old PA design
@DarrenCarlson-zv6ec
@DarrenCarlson-zv6ec Месяц назад
@@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?
@divyakabra734
@divyakabra734 Год назад
Hi Tomasz, Nice info. Will this work if adaptive card is posted through microsoft graph API?
@TomaszPoszytek
@TomaszPoszytek Год назад
It will not.
@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.
@chareunsritwila
@chareunsritwila Год назад
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 Год назад
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 Год назад
Glad you made it work ☺️
@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.
@kakis57
@kakis57 Год назад
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 Год назад
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?
@kyleadammason
@kyleadammason 10 месяцев назад
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 10 месяцев назад
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 10 месяцев назад
@@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 8 месяцев назад
@@kyleadammason Were you able to work with the dynamic content afterwards in other actions? For me, it does not work out :/
@kyleadammason
@kyleadammason 8 месяцев назад
@@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.
@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
@abinayamuthusamy7479
@abinayamuthusamy7479 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?
@abinayamuthusamy7479
@abinayamuthusamy7479 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 года назад
@@abinayamuthusamy7479 well since it is triggered from Logic Apps there's no environment context, so that doesn't surprise me...
@abinayamuthusamy7479
@abinayamuthusamy7479 2 года назад
@@TomaszPoszytek is there anyway to make it work ?
@TomaszPoszytek
@TomaszPoszytek 2 года назад
@@abinayamuthusamy7479 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?
@ashleysummerell7583
@ashleysummerell7583 Год назад
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 Год назад
Remember to include headers and authentication properties. This may be the reason.
@JakobElfner
@JakobElfner 8 месяцев назад
Did you find a solution? I am having the same issue.
@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.
Далее
iPhone 16 & beats 📦
00:30
Просмотров 162 тыс.
Actionable Messages step-by-step
24:35
Просмотров 29 тыс.
Getting Data from an Adaptive Card in Microsoft Teams
12:55
iPhone 16 & beats 📦
00:30
Просмотров 162 тыс.