Forum Discussion

Hiral_Patel's avatar
Hiral_Patel
Copper Contributor
Jul 01, 2021

Microsoft Teams Message extension without popup/extra parameters and submit action

 

I want to have a message extension, action based command that simply sends the message text to the message handler. So when the user clicks the message extension from the (...) context menu, that is it, no other input/step is necessary.


It appears that Microsoft forces you to have some additional parameters.

Is there a way to get around this and simply send the message content without additional parameters?

 

I tried to setting fetchTask to false and removing the parameter values, but that doesn't  work.

Is there any solution available to achieve this?

 

"composeExtensions": [
    {
        "botId": "--Bot Id Here--",
        "commands": [
            {
                "id": "commandId",
                "type": "action",
                "title": "Command Title",
                "description": "",
                "initialRun": true,
                "fetchTask": false,
                "context": [
                    "message"
                ]
            }
        ]
    }
]

 

 I want to publish it on store, so it must pass the the manifest validation test.

  • Hiral_Patel - Is your request hitting bot's code when user clicks on Messaging Extension action for any message? When I tried creating command with same values as mentioned in the post, I was able to get it working.

     

    I see the warning in App Validation for this which I'll check with team. 

     

Resources