Hi @Asif
Thank you for posting your question in the Microsoft Q&A forum.
From your description, it sounds like your bot sends an Adaptive Card with buttons, and when a user clicks one, your bot handles the invoke action and updates the card. However, the update only appears on the client where the action was triggered, and other clients don’t reflect the change.
This behavior is expected because Microsoft Teams does not automatically synchronize card updates across multiple clients. When your bot responds to an invoke activity, the update is scoped to that specific client session.
To ensure the card update is visible across all clients, consider the following approaches:
1.Use updateActivity with the original message ID.
When you send the response, ensure you use the activityId of the original card message, not the invoke activity. This ensures the update is applied to the original message in the conversation thread, allowing all clients to reflect the change.
2.If posted in a channel or chat, use the original conversationId and activityId .
For example:
await turnContext.UpdateActivityAsync(updatedActivity)
Reference: Conversations with a Bot - Teams | Microsoft Learn.
This method updates the card globally within the conversation, ensuring consistency across devices.
3.Additionally, consider implementing Universal Actions (Action.Execute) with the refresh property to support cross-client synchronization.
Reference: Use Universal Actions for Adaptive Card - Teams | Microsoft Learn.
Please make sure to set the version of your Adaptive Card to 1.5 to enable this functionality because Universal Actions for Adaptive Cards are introduced in the Adaptive Cards schema version 1.5.
We hope this helps streamline your bot’s behavior across all clients. Please let us know if you need further assistance.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.