Search code examples
botframeworkmicrosoft-teamsadaptive-cards

Adaptive Cards : Dynamic data binding on Action.Show Card


I am working on Adaptive Cards in Teams.

I am able to send a card and update the card based on the user action.

However i am wondering if it is possible to load data in the Adaptive Card dynamically by calling a REST API when Action.ShowCard is called. For Example in the below, When clicked on More Info, I would like to call an API and then populate the ShowCard data with the API responses. Is there any way we can achieve this ?

enter image description here


Solution

  • You can not bind data dynamically onclicking of the action.showcard button using api call because the action.showcard's card will loads with the parent card so when click on showcard it will shows what ever loaded initially. This is by design