MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
288 stars 511 forks source link

Parameter MessagingExtensionQuery always returns just first CommandId from manifest #11727

Open ChetanSharma-msft opened 4 weeks ago

ChetanSharma-msft commented 4 weeks ago

Steps to reproduce

Copied from: https://github.com/microsoft/botbuilder-dotnet/issues/6465 Posted by: @harald-thoenig

I'm using Microsoft Bot Framework V4 SDK to create a messaging extension bot.

I created two commands (searchQuery, processQuery). I would like to call up a configuration page for each command. The problem is that the MessagingExtensionQuery parameter in the OnTeamsMessagingExtensionConfigurationQuerySettingUrlAsync event always returns just the first command Id, I entered in the manifest.

I would have expected that when I click on the 3 dots to open the configuration page, the respective ID of the command would be passed to the event. image

image

Messaging extension bot ConfigurationPage Manifest

Hope you can help. regads

Expected behavior

I would have expected that when I click on the 3 dots to open the configuration page, the respective ID of the command would be passed to the event.

Actual behavior

I created two commands (searchQuery, processQuery). I would like to call up a configuration page for each command. The problem is that the MessagingExtensionQuery parameter in the OnTeamsMessagingExtensionConfigurationQuerySettingUrlAsync event always returns just the first command Id, I entered in the manifest.

Error details

No response

microsoft-github-policy-service[bot] commented 4 weeks ago

Hi ChetanSharma-msft! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

sayali-MSFT commented 4 weeks ago

@harald-thoenig-Thanks for reporting your issue. We will check this at our end and will get back to you.

sayali-MSFT commented 3 weeks ago

@harald-thoenig-We are able to repro that issue, We have raised bug for the same. We will inform you once we get any update.

sayali-MSFT commented 1 week ago

@harald-thoenig- We received a response from the engineering team, who informed us that the canUpdateConfiguration property in the bot's manifest enables the settings menu. This property is applied at the bot level rather than on a per-command basis. Reference document-https://learn.microsoft.com/en-us/microsoftteams/platform/resources/messaging-extension-v3/create-extensions?tabs=typescript#declare-your-message-extension