Forum Discussion
Send details from adaptive card to task module
ray2408 - Your adaptive card should have an Action.Execute
or Action.Submit
button that, when clicked, sends an invoke
request to your bot with the action details. Your bot receives the invoke
request and extracts the necessary information from the adaptive card. The bot responds to the invoke
request with a task module dialog that includes the information from the adaptive card. The user fills out the task module dialog, and upon submission, the information is sent back to the bot for processing.
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
In this interface, there is no variable to add json object, which I can send to the dialog.
Without using this interface for taskInfo, if I do this
How to catch the testData in the dialog?
- Prasad_Das-MSFTMay 23, 2024
Microsoft
1. Include an
Action.Submit
action in your adaptive card JSON and place the information you want to pass within thedata
property of the action. In your bot's code, implementhandleTeamsTaskModuleFetch
function. This function will be called when the user interacts with the adaptive card. Extract the necessary information from thedata
property sent with the invoke request. 2. Respond to the invoke request with a task module dialog that includes the information from the adaptive card. The user can then interact with the task module dialog, and upon submission, the information is sent back to the bot for processing.