How can I create configurable properties for a custom Teams message extension ?

Serban 16 Reputation points
2021-09-20T09:28:59.137+00:00

I need some kind of configurable custom properties for the teams message extension that I developed.

Something that can be configured, preferably in some kind of "Settings section"; the kind of property that the regular users should not have to manually type every time they use the message extension, but instead access it somehow, and which periodically might need to be changed (without any azure (re)deployment operations).

What options do I have ?

Thank you.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,956 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Hunaid Hanfee-MSFT 976 Reputation points
    2021-09-22T16:57:38.697+00:00

    Hello ,
    In this sample you can configure the Messaging extension by right clicking on it and selecting settings from the menu.
    134346-image.png

    could I return & work with an adaptive card, instead of loading an URL ?

    No, this is not possible. You need to do it with URL only.

    what possibilities do I have to really persist some of the data set by the user in the settings section ? So that it has effect on the functionality of the message extension at further invocations ? I need something similar to the way a custom Teams Tab can have configurable properties...

    See this - Save user and conversation data to learn more how the user configuration is maintained in the sample.

    Thanks,
    Hunaid Hanfee


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    1 person found this answer helpful.
    0 comments No comments