Microsoft Teams Bot icon

Microsoft Teams Bot

Send messages and cards via Microsoft Teams Bot

Card → Update Card (from Action)

AI-generated

Summary

Update an existing adaptive card in a Microsoft Teams conversation using the activity ID and conversation ID from a trigger event output.

Inputs

  • Card JSON (required) — The updated adaptive card JSON object to replace the existing card's content.
  • Activity ID (required) — The activity ID of the original card message to update, typically sourced from the trigger event output.
  • Conversation ID (required) — The conversation ID of the Teams chat or channel, also obtained from the trigger event output.

Output shape

a single record containing the API response indicating the result of the card update operation

The operation returns the updated card response from the Microsoft Teams API. This response is parsed into a JavaScript object for downstream use. It requires the activityId and conversationId to target the specific card message to update, and the card property containing the updated adaptive card JSON. Errors may occur if identifiers are invalid or the bot lacks permissions.

Examples

Example 1: Update the content of an adaptive card in response to a user action in a Teams Bot workflow

Provide the 'Card JSON' with the new adaptive card content, and fill 'Activity ID' and 'Conversation ID' with values extracted from the trigger event's output, so the node updates the correct card in the conversation.

Links

Discussion