Messaging Extension
2 TopicsHow do I allow a user to trigger a task module from an adaptive card in the compose area?
I have a teams bot which responds to search queries via a messaging extensions and allows the user to embed card responses in messages and teams. I have reworked it from making use of thumbnail cards to make use of adaptive cards to leverage the ability to trigger Task modules from them so that I can make a popup web view appear when the user clicks the button. This all works fine while the user is clicking the button on the card after it has been posted as a chat or channel reply. The issue is that while the card is still in either the command bar or the compose window, prior to the user copying it or posting their message, the button which triggers the task module does not work. It is also worth noting that the other buttons present on the card which are AdaptiveOpenUrlActions work as expected in both the compose window and the posted message. This is the C# code I am using to add the button to my Adaptive Card: actions.Add(new AdaptiveSubmitAction() { Title = "View", Data = new PreviewTaskModel() { DocumentId = result.Metadata.Id, ContentSourceId = result.Metadata.ContentSourceId } }); My question is: Is this intended functionality? If so does making use of DeepLinking work around this issue?Solved2.6KViews0likes11CommentsMessaging Extension (V3 SDK) Settings / Configuration
I've created a messaging extension based on the sample app provided on the Get Started guide for Teams in C#. The extension queries my company's product for data and returns it in a list, from which the user can select a card to insert into the conversation, which contains a link to view that data on our service. This works fine pointing at one of our test sites. However, my customers have their own instances of the product, so they need to be able to configure the extension to point at their own instance. I'm following the documentation for search based messaging extensions which says I should be able to do this by adding canUpdateConfiguration to my manifest. This brings up a greyed out settings option when right-clicking the extension in Teams. However it also says I need to use onQuerySettingsUrl and onSettingsUpdate event handlers, but is incredibly vague, and I cannot find further documentation or help on how to actually write/implement either of these things anywhere. It seems like such a simple task and we're so close to having this basic extension finished that it's getting quite frustrating. Can anyone offer any advice on this? Thanks in advance.1.5KViews0likes3Comments