Teams V2 messaging extension started from commandbox has no context (URL placeholder are not replaced with values) #11725
Labels
needs-triage 🔍
teams-developer-support
Question related to extensibility (Bot, ME, Tab) would be marked under this label
Steps to reproduce
Copied from: microsoft/botbuilder-dotnet#6775
Posted by: @anne376
Details:
Version: V4.22.3
Describe the bug:
I have a problem with my existing Teams messaging extension in Teams V2. With the old teams everything runs perfectly.
I have a messaging extension using the Bot Framework. Actions are defined which can be triggered from message and command box. On my server I did override OnTeamsMessagingExtensionFetchTaskAsync and created a MessagingExtensionActionResponse with a URL that includes placeholders, like {groupId} and {channelId}.
The messaging extension works fine when I use the old teams client (web or windows app). But if I switch to Teams V2 the placeholders are only replaced with values when the messaging extension is triggered from the message. If it is triggered from commandbox the placeholders are not replaced.
Expected behavior
Placeholder should be replaced with values when the messaging extension is triggered from message AND commandbox
Actual behavior
The messaging extension works fine when I use the old teams client (web or windows app). But if I switch to Teams V2 the placeholders are only replaced with values when the messaging extension is triggered from the message. If it is triggered from commandbox the placeholders are not replaced.
Error details
No response
The text was updated successfully, but these errors were encountered: