cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vbvbvb
Microsoft
Microsoft

Post an Adaptive Card to a Teams channel and wait for a response - Update message formatting ?

Hi all - with this action in Flow , what is correct "update message" formatting? I tried to use same adaptive card as in message part, HTML, plan text with dynamic values - in all cases it just shows as oversized text block with huge image:

 

Capture.PNG

 

Ideally  I want to see exactly same card as it was before clicking Action.Submit - with some changes values in the the Update Message, is this even possible? Documentation on this part is very vague.

7 REPLIES 7
ChristianAbata
Super User II
Super User II

hi @vbvbvb  pleasee follow this video to see how can you do this adaptive approval cards.

 

https://www.youtube.com/watch?v=VT20p_LBU28&feature=youtu.be&fbclid=IwAR2UtXJCDEm1GaWKloetAo0ofQheOy...



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Thanks @ChristianAbata , but this video has nothing to do with my query 🙂 

 

I am looking to retain adaptive card layout before Action.Submit - i am not going to have forked conditions and other actions etc.

Want to have Flow bot post adaptive card with a lot of dynamic values - > press the button -> update the card , change some of the values or at least add responder value as it does now.  

fchopo
Super User II
Super User II

Hello @vbvbvb 

Have a look at this post: https://poszytek.eu/en/microsoft-en/office-365-en/powerautomate-en/register-response-from-custom-ada...

You could format the update message field in the "Post a message and wait for a response" Teams action.

Hope it helps

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Hi @fchopo , that's not entirely true I am afraid.  You can see that maximum you can use is some text string , exactly as the one I used in my screenshot in the post - you can use dynamic values, but have no any control over the outcome of the "update". Same article states - "body of the card will either be replaced with confirmation message or visible for other users." - that is if Yes or No selected in last field.

 

Additionally, it's unbelievable that "Post your own adaptive card as the Flow bot to a channel" only output is Message Id and " Post an Adaptive Card to a Teams user and wait for a response" doesn't return that anyhow - this would've been workaround to at least let it update and put responder name to the card and at least make sequential "Post a reply to a message (V2)" to at least pass down information which is getting "wiped out" from card after triggering Action.Submit.

I agree with you! Maybe we will have to wait for V2 of "Post an Adaptive Card to a Teams user and wait for a response" action.

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

I managed to think out a bit bonkers workaround to this limitation which does HTTP request to Azure AD to Graph with query to get messages from required Teams  channel using "?top=1" filter - limiting output to last posted message  and then Parse JSON to extract message ID value and pass it to "Post a reply to the message V2" to make replies to action card upon pressing Action.Submit button. But going such lengths for such simple things is totally not worth it.

If any post from the Flow Bot would just include the message ID in the body of the action as an output the rest of the Flow or other Flows could reply to that existing message --> see https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Teams-Connector-Reply-to-an-adaptive-card-m...

 

This will enable more flexibility on replies.

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (52,785)