Forum Discussion
AshuJadhav
Nov 16, 2024Copper Contributor
What if post adaptive card and wait for a response timeout
Hi Team, Scenario: Post the adaptive card to the team chat. If the user doesn't respond after 2 hours, the adaptive card should be updated as "Expired"with a new design on the same conversation. I...
apal26
Jun 19, 2026Copper Contributor
Hi,
I have found a solution to this, without using any premium connectors.
The solution is to run a parrallel branch, use the Get messages in a chat block. You need the conversationID for this to run, so you need to Create a chat (cannot be yourself or workflow bot). Once you have the chat, save the conversationID to be used in Get messages in a chat block. Retrieve the last couple of messages, filter the messages by equals(item()?['attachments']?[0]?['contentType'], 'application/vnd.microsoft.card.adaptive') and voila, the first body of the filter array contains the message id as id.
I can provide the step-by-step code if required.