Messaging Extension
4 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.5KViews0likes3CommentsSearch Messaging Extension / Images with OAuth authentication / SVG support / DATE/TIME-formatting
Hello! I am implementing a Teams App with a search messaging extension (manifest: composeExtensions/commands/id "search") which outputs an attachment list via builder.ThumbnailCard/builder.CardImage/builder.cardAction/... I am encountering the following problems: The image URLs seem to be unauthenticated and so far I could not find any way to access the address object to obtain the session and access e.g. OAuth access tokens assigned with the current user/session. There are no headers sent which could be used for that. As the images contain sensitive data, only users authenticated against our service are able to request them via the public service. I can use data URIs as a workaround, but they cannot be updated. SVG support (content-type: image/svg+xml) for images in the attachment list, to be able to provide scale independent icons. Support for "{{DATE}}" and "{{TIME}}" formatting in the text attribute is missing (as stated in the docs). Is there any way to correctly display a date/time in the user's time zone and the user's formatting preferences there? Thank you and Regards, Dominik1.1KViews0likes0Comments