Microsoft Teams list buttons


(yogesh bhargav) #1

unable to fetch list of buttons in microsoft teams. message template is also not visible in microsoft teams.
can you help me with an example for microsoft teams.


(Yoga Ramya Mendu) #2

Hi @yogeshbhargav420,

We infer that you are using message template: button template in the message node for Microsoft teams channel.

The messaging templates in the bot builder like the button template, table template etc are provided only for WebSDK as the template code and CSS will be in the webSDK js files. The selected template will take data from the javascript in the message node and template definition will be executed from the webSDK JS files.

Hence, the message templates provided by the bot builder are only confined to webSDK i.e., web/mobile client channel.

For the other channels, you will need to write your custom javascript in the message node response to format the messages.
The formatting templates/patterns should be followed as per the respective channel’s developer documentation.

Microsoft teams developer documentation for script: https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/bots/bot-conversations/bots-conversations

Regards,
Yoga Ramya.