microsoft-teamsadd-inteams-toolkitmicrosoft-teams-js

Build Microsoft Teams Message Extension for Action Command


I want to build a Microsoft Teams message extension. I have read all the documents but they are all related to command box, message box and creating cards.

Can anyone tell me how it works?

I have created a message extension "Hello World" using Teams Toolkit. I followed this link https://learn.microsoft.com/en-us/microsoftteams/platform/get-started/build-message-extension?tabs=teamstoolkitcodespaces.

I created a message extension but it appears in the message box.

Thanks!


Solution

  • To show the option in More Action, you have to add the commands in composeExtensions section of your app manifest schema.

    enter image description here

    Ref Doc: https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema#composeextensions

    Please refer below document and sample for detailed description:

    1. https://learn.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/how-to/action-commands/define-action-command
    2. https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/msgext-action/csharp