Teams bot update message not render on another medium

Asif 20 Reputation points
2025-10-15T15:54:32.1266667+00:00

I send a action to the teams via bot. It contains buttons. If i clicked the button then it send the invoke action to my endpoint i send the response. But it is only updated on where i clicked the button. Suppose if i clicked the button through browser it is only updated on that brower only. It is not updated on app and other browsers if i login.

Microsoft Teams | Development
0 comments No comments
{count} votes

Answer accepted by question author
  1. Teddie-D 6,630 Reputation points Microsoft External Staff Moderator
    2025-10-16T00:52:35.5833333+00:00

    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. 


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.