SOLVED

Add custom entry to MS Teams chat context menu without MS Teams bot

Copper Contributor

Hi everyone,

we currently developing an MS Teams Tab App and we trying to find a way to add custom entry to the Microsoft Teams chat context menu:

01.png


or

 

02.png

So far our investigation shows that we always have to use an MS Teams bot. In our scenario this is at the moment not an acceptable solution. Is there any other way to add a context menu entry in one of these menus?

Kind regards

Sebastian Dreier

3 Replies
best response confirmed by sdreier2021 (Copper Contributor)
Solution
You are correct. Adding items to the context menu is done via a Teams Messaging Extension of the type "action command". See https://docs.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/how-to/action-commands... for full documentation.

Messaging Extensions in Microsoft Teams is built on top of the Bot Framework Invoke command, therefore you need to use a bot for this - however, you don't have a bot experience in your Teams app.
Adding custom entry to the Microsoft Teams chat context menu is supported through Teams Bot.
I don't think there is a direct way to add entry to chat context menu.

For anyone who finds this later, as I did, I've been using this method

 

Trigger flows from any message in Microsoft Teams | Power Automate Blog

 

It lets you trigger a flow from any message, as described, and you just create a Flow and an optional Adaptive Card to capture information to send to your chosen destination. I'm using it to send the contents of the message by email to the IT Helpdesk as a new ticket 'created by' the person who sent the message you run it on. Once you create the flow, the option appears on the message overflow menu as shown, without a bot and without having to do anything other than creating the flow itself. Hope this helps someone.

1 best response

Accepted Solutions
best response confirmed by sdreier2021 (Copper Contributor)
Solution
You are correct. Adding items to the context menu is done via a Teams Messaging Extension of the type "action command". See https://docs.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/how-to/action-commands... for full documentation.

Messaging Extensions in Microsoft Teams is built on top of the Bot Framework Invoke command, therefore you need to use a bot for this - however, you don't have a bot experience in your Teams app.

View solution in original post