Тёмный

FINALLY! Learn how to update (or replace) an Adaptive Card sent to Microsoft Teams 

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

The new action "Update an adaptive card in a chat or channel" has arrived. With it you are now able to update (or replace) an Adaptive Card sent to Microsoft Teams using Power Automate. Super cool!
Links to mentioned content:
1. Custom branded Power Automate approvals: • Company branded tasks ...
2. Adaptive Cards community call: • Adaptive Cards communi...
Chapters:
0:00 Intro
2:15 New feature demo
6:05 Let's talk about the delays...
7:30 Let's measure the delays...
9:10 Multiple submits issue
10:40 New feature can work only in default environment!
13:13 User context limitations
15:10 Use child flows to overcome user context limitations
23:13 Wrap up!

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

 

10 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 48   
@sinyeechan6850
@sinyeechan6850 2 года назад
Thanks! Save my day!
@Fernanda-uh7iz
@Fernanda-uh7iz Год назад
Hello Tomasz! this video was brilliant! I was looking for something else and your video gave me a whole new perspective! thanks a lot!! I have a question... if both flows are co-owned by, let's say 3 people (same people for both), will the update work?? , for example: Flow 1 is co-owned by A-B-C and Flow 2 is also co-owned by A-B-C... for the update to work both flows must be triggered by the same person?(A-A; B-B; C-C) or it can be A-B; A-C; B-C???
@TomaszPoszytek
@TomaszPoszytek Год назад
Hi, I am glad to read it :) Speaking about your scenario - it's not about the ownership, but the account used for a connection. That is my feeling. But if you have time, please test and let us know how it went :)
@Fernanda-uh7iz
@Fernanda-uh7iz Год назад
@@TomaszPoszytek i will check it out, thank you!!
@JordanMatas
@JordanMatas Год назад
Hello Tomasz ! Thanks a lot for this demo, i tried what you do, but i always get on error 403 on the update... Do you have some clue ?
@TomaszPoszytek
@TomaszPoszytek Год назад
Be sure you're updating a card that was sent by the same account which is being used to update it.
@fatiga2426
@fatiga2426 Год назад
Hey, thanks for all your videos! Is it possible to do the same in outlook? Is there any way?
@TomaszPoszytek
@TomaszPoszytek Год назад
Yes, checkout here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BUO8CdOXZwc.html
@YasintaKurnia99
@YasintaKurnia99 Год назад
hi Tomas, nice video :) but why i can't update adaptive card (using action : update adaptive card in a chat or a channel) using the message id from action "reply with adaptive card in a channel" ?
@TomaszPoszytek
@TomaszPoszytek Год назад
Are there any errors you're facing?
@siripuramamruthavarsha547
@siripuramamruthavarsha547 3 месяца назад
Even I tried the action "Update an Adaptive Card", When we pass the message id of a " reply message " this action will fail saying "404 Message Not Found Error".
@wasay456
@wasay456 Год назад
Thanks a lot! I have a question if anyone can answer. All these examples show cards posted and updated in a channel. Can cards sent via chat "Chat with Flow bot" also be updated? Having a hard time with finding the correct ID.
Год назад
me too
@egortio4438
@egortio4438 Год назад
Hi Tomasz! I'm trying to use a custom card in a power automate flow, triggered by an approval. Custom card is shown correct in Teams channel, but when I click any action button it turns in to default design. How to fix that, please?
@TomaszPoszytek
@TomaszPoszytek Год назад
This is the oob behavior. You are able to customize the initial card, however not the one displayed as a confirmation. To overcome it, you would need to build the whole approval process on your own. Try and follow my steps explained here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-45f8mRAiNjo.html
@Dave-mj8yl
@Dave-mj8yl Год назад
Thanks for the video. This was the first video I saw showing this was possible. I got the update card when feature working but I didn’t follow the “when someone” trigger. Could you explain that a bit more or point me to where I could teach myself? The Microsoft details are lacking. Thanks in advance
@TomaszPoszytek
@TomaszPoszytek Год назад
What are you missing? What would you like to learn?
@Dave-mj8yl
@Dave-mj8yl Год назад
Thanks for getting back to me. There are a couple things I’d need help with if you had time. First, I would love to update a card that had timed out. Unfortunately there isn’t anything in the timeout message payload that can be used not even a message ID. Is there any thing even a round about way of obtaining this? suggestions / thoughts?
@marcusstumbaum5828
@marcusstumbaum5828 7 месяцев назад
Hi Tomasz, do you know if it's possible to update an adaptive card twice? I am facing an issue where, after updating an adaptive card, attempting a second update results in a 403 error 'Forbidden.' I'm unsure whether my user has organizational restrictions or if the action is not supported in Power Automate. It would be great to hear from you. Best regards, Marcus
@JordanMatas
@JordanMatas 6 месяцев назад
Would love to get the answer. Or if there is a workaround. Thanks !
@TomaszPoszytek
@TomaszPoszytek 6 месяцев назад
I haven't tried it myself to be honest. Basically the card can get updated when there is a request made from it to the endpoint. I believe, that if you display a card via your own custom bot, that would be easily possible (I mean easily, because you control the communication). But using Power Automate - I truly don't know.
@user-ju8hf2qd2w
@user-ju8hf2qd2w 5 месяцев назад
I have tested - You can update as many times as you want, but without Action Submit
@dlf_uk
@dlf_uk 2 года назад
I tried to set up a really basic one, I had one flow which added the adaptive card to the teams channel, then set up another flow with the 'when someone responds to an adaptive card' trigger, I made sure the Card Type Id was the same, and pasted the same json for the card into the 'Inputs adaptive card', but when I submit the card it always says "Unable to reach app. Please try again." Any ideas how to troubleshoot?
@TomaszPoszytek
@TomaszPoszytek 2 года назад
The problem is not in that trigger, but the card itself. Maybe the flowbot was unreachable. Or the payload you were trying to send was wrong. I'd try to first use the "send adaptive card and wait for response" to see if this works.
Год назад
Hello, a -POSTED- adaptive card message by power automate is crashing a group chat when opened in ios app... how could I delete those posts OR update the code in the post' adaptive card with a simpler code (like a text that says hello instead of an action to open an url, which was my case)... THANKS
@TomaszPoszytek
@TomaszPoszytek Год назад
To make it possible for the message to be deleted, you need to turn on a setting in Teams admin policy.
@jessefatherree1860
@jessefatherree1860 Год назад
Anybody have suggestions on how to handle when the adaptive card times out? There doesn't appear to be any way to get the message ID if it's not posted to a Team channel.
@TomaszPoszytek
@TomaszPoszytek Год назад
You mean the action, that posted the card times out? Because the card itself can be there for months.
@hotelranimahaljaipur9380
@hotelranimahaljaipur9380 Год назад
Hello Tomasz! , I have created an adaptive card in Power virtual agent , and I want to update the adaptive card , how can we do that because to update adaptive card may be teams is not channel for that adaptive card?
@TomaszPoszytek
@TomaszPoszytek Год назад
Could you try to rephrase the question? It's a bit unclear to me where the card is posted in the first place?
@hotelranimahaljaipur9380
@hotelranimahaljaipur9380 Год назад
@@TomaszPoszytek I want to create a custom approval with adaptive card and send them to multiple users in teams and when I get a single reponse , I want to update all adaptive card sent to users. so , i know you have vedio to do it to collect responses for every user but in my case I want to wait only for single response .?
@tetrismkte1
@tetrismkte1 Год назад
Witaj Tomasz. Is it possible to Update adaptive card without posting in Channel or group? Can be that avoided?
@TomaszPoszytek
@TomaszPoszytek Год назад
I don't understand. Where is the card posted, that you would like to update?
@tetrismkte1
@tetrismkte1 Год назад
@@TomaszPoszytek the card is "Post adaptive card and wait for response". Instead channel or group chat, it is selected the option Flowbot. After that should be updated, but if you are updating adaptive card there is obligatory field "Post in". Can somehow to be avoided this filed or not to be posted to chat or channel, but still able to update the card?
@georgemullar3512
@georgemullar3512 Год назад
Hii, can you help me with me how to use only show when option in adaptive card designer
@TomaszPoszytek
@TomaszPoszytek Год назад
That is not feasible, the action.showCard can be bound to buttons only, not optionSet. So you should add buttons for each option and re-design the card.
@MestreShake08
@MestreShake08 2 года назад
Hey Tomasz How can I update a card in a private chat whit the flow bot? Theres no default option to do so in the power automate connector, but I was wondering if theres a workaround using a custom value. Thank you so much for the content!
@TomaszPoszytek
@TomaszPoszytek 2 года назад
As you noticed, no such option oob. For such scenario you would need to write and use your own bot unfortunately.
@manson538
@manson538 Год назад
I just did a test and was able to update the adaptive card in a private bot chat. When using the "Update an adaptive card"-action you can use the following configuration: -Post as: Flow bot -Post in: Group Chat -Message ID: Message ID from the first adaptive card -Group chat: Conversation ID from the first adaptive card The action does not seem to care if you specify a 1-on-1 chat as the group chat. This seems to work for regular 1-on-1 chats as well, even when sending the card as a user. The only problem I ran into is that there currently does not seem to be a way to find a chat based on the users within that chat...So no dynamically sending/updating adaptive cards in 1-on-1 chats with service accounts just yet!
@djamalakial5924
@djamalakial5924 Год назад
@@manson538 , how did you manage to add in the Group Chat section the “Conversation ID”, I can't see the element in the "Insert parameters from previous steps" or attribute in the messsage while reviewing the code. Same applies to ”Messages ID” even if I can at least see this in the code when a card is fired. Dynamically I’m lost… thanks for any insight, guidance you may provide
@manson538
@manson538 Год назад
@@djamalakial5924 Sorry, I just saw your reply. When you post an adaptive card in a chat or channel, the "Conversation ID" is listed in the dynamic content created from the post adaptive card action. This in turn can then be used as the input for the "update an adpative card in chat or channel" action, as the "Group chat" parameter, with the "Post in" parameter set to "Group Chat". If it for some reason does not show up in the dynamic content you can also acquire it via the following expression: outputs('Post_adaptive_card_in_a_chat_or_channel')?['body/conversationId'] As the "Update adaptive card"-action is now linked to the "Send adaptive card"-conversation ID and you can create logic which dynamically sends and updates cards for any user.
@diveshsingh1556
@diveshsingh1556 Год назад
@@manson538 Thanks for this amazing information ! Just wanted to ask is this possible when sending the card out to multiple users in a group. It seems it will only update the card linked the the account that made the flow, and fails with a forbidden error for the rest of the users in the group. Thanks again :)
@LauraLuisaRosenberg
@LauraLuisaRosenberg Год назад
Hello, I only wanted to ask if anyone had already this problem with an adaptive card adaptive card Response content: '{"error":"The payload is too large. Please make sure the size is less than 28KB."}'.
@TomaszPoszytek
@TomaszPoszytek Год назад
Unfortunately, the payload - all text that is being sent to Teams, cannot exceed 28KB. The payload max. size is a struggle and possibly will be increased one day. If you are using dataUri for images, try hosting them elsewhere and use URL to make reference to them.
Далее
Automate Microsoft Bookings approvals
31:36
Просмотров 2,2 тыс.
Power Virtual Agents Ask with Adaptive Card Feature
34:41
Getting Data from an Adaptive Card in Microsoft Teams
12:55