Updates from: 01/05/2022 02:18:15
Service Microsoft Docs article Related commit history on GitHub Change details
platform App Templates https://github.com/MicrosoftDocs/msteams-docs/commits/master/msteams-platform/samples/app-templates.md
The following table describes App template code samples:
|E-Prescriptions| E-Prescriptions is a [Power Apps](/powerapps/maker/canvas-apps/embed-teams-app) based app that enhances telemedicine and virtual care by automating the process of issuing e-prescriptions to patients. Medical professionals can quickly review appointments, generate e-prescriptions, and send emails with e-prescription attachments to patients directly within the Teams platform.|[E-Prescriptions](https://github.com/OfficeDev/microsoft-teams-apps-eprescription)| | Employee Training | Employee training is a Microsoft Teams app that enables organizers to easily publish, track, and promote learning and training events for your organization. With the app, event planners can send reminders and notifications to event registrants and employees can indicate interest in upcoming events, stay updated on current events, and share event details with colleagues through the Teams messaging extension.|[Employee Training](https://github.com/OfficeDev/microsoft-teams-apps-employeetraining)| | Expert Finder| Expert Finder is a [Microsoft Teams bot](../bots/what-are-bots.md) that identifies specific organization members based on their skills, interests, and education attributes. Members find experts within an organization that match a keyword search of Azure Active Directory user profiles.| [Expert Finder](https://github.com/OfficeDev/microsoft-teams-apps-expertfinder)|
-| Get Support App| The Get Support app is used by organizations that are using Microsoft Teams, to enable any set of users to request assistance from supervisors. This app includes the following features: <br/>Requesting assistance on different categories from a Power App.<br/>Notifications sent to requestors informing them of who is assigned.<br/> Notifications sent to assigned supervisors informing them of who needs assistance. <br/>Analyzing escalations and patterns in SharePoint and Power BI.|[Get Support App](https://github.com/OfficeDevmicrosoft-teams-app-get-support/) |
+| Get Support App| The Get Support app is used by organizations that are using Microsoft Teams, to enable any set of users to request assistance from supervisors. This app includes the following features: <br/>Requesting assistance on different categories from a Power App.<br/>Notifications sent to requestors informing them of who is assigned.<br/> Notifications sent to assigned supervisors informing them of who needs assistance. <br/>Analyzing escalations and patterns in SharePoint and Power BI.|[Get Support App](https://github.com/OfficeDev/microsoft-teams-app-get-support/) |
| Goal Tracker|The Goal Tracker app is a comprehensive solution for your organization to support establishing goals, observing progress, and acknowledging success within Microsoft Teams. The app enables users to set, track, and update objectives on a professional, personal, and team level. Team members also receive timely reminders and status updates to remain focused and stay on track. |[Goal Tracker](https://github.com/OfficeDev/microsoft-teams-app-goaltracker) | | Great Ideas|The Great Ideas app supports and empowers innovation and creativity within your organization. The app enables your employees to share ideas with colleagues and leadership, discover new submissions, spotlight contributions for peer consideration, and cast their vote for the best proposals within Microsoft Teams. |[Great Ideas](https://github.com/OfficeDev/microsoft-teams-apps-greatideas) | |Group Activities | Group Activities is a Microsoft Teams app that makes it easy for team owners to quickly create activity groups and manage collaboration workflows within the context of Microsoft Teams. Activity authors are enabled to create activities, randomly distribute team members in groups, and optionally have the bot send reminders until activities are complete.|[Group Activities](https://github.com/OfficeDev/microsoft-teams-apps-groupactivities) |
platform Dynamic Search https://github.com/MicrosoftDocs/msteams-docs/commits/master/msteams-platform/task-modules-and-cards/cards/dynamic-search.md
The example payload which contains static and dynamic typeahead search with sing
} ```
+## Code snippets for invoke request and response
+
+### Invoke Request
+
+```json
+{
+ "name": "application/search",
+ "type": "invoke",
+ "value": {
+ "queryText": "fluentui",
+ "queryOptions": {
+ "skip": 0,
+ "top": 15
+ },
+ "dataset": "npm"
+ },
+ "locale": "en-US",
+ "localTimezone": "America/Los_Angeles",
+ // …. other fields
+}
+```
+
+### Response
+
+#### [C#](#tab/csharp)
+
+```csharp
+protected override async Task<InvokeResponse> OnInvokeActivityAsync(ITurnContext<IInvokeActivity> turnContext, CancellationToken cancellationToken)
+{
+ if (turnContext.Activity.Name == "application/search")
+ {
+ var packages = new[] {
+ new { title = "A very extensive set of extension methods", value = "FluentAssertions" },
+ new { title = "Fluent UI Library", value = "FluentUI" }};
+
+ var searchResponseData = new
+ {
+ type = "application/vnd.microsoft.search.searchResponse",
+ value = new
+ {
+ results = packages
+ }
+ };
+ var jsonString = JsonConvert.SerializeObject(searchResponseData);
+ JObject jsonData = JObject.Parse(jsonString);
+ return new InvokeResponse()
+ {
+ Status = 200,
+ Body = jsonData
+ };
+ }
+
+ return null;
+}
+```
+
+#### [Node.js](#tab/nodejs)
+
+```nodejs
+ async onInvokeActivity(context) {
+ if (context._activity.name == 'application/search') {
+ // let searchQuery = context._activity.value.queryText; // This can be used to filter the results
+ var successResult = {
+ status: 200,
+ body: {
+ "type": "application/vnd.microsoft.search.searchResponse",
+ "value": {
+ "results": [
+ {
+ "value": "FluentAssertions",
+ "title": "A very extensive set of extension methods"
+ },
+ {
+ "value": "FluentUI",
+ "title": "Fluent UI Library"
+ }
+ ]
+ }
+ }
+ }
+
+ return successResult;
+
+ }
+ }
+```
+
+#### [JSON](#tab/json)
+
+```json
+{
+ "status": 200,
+ "body" : {
+ "type": "application/vnd.microsoft.search.searchResponse",
+ "value": {
+ "results": [
+ {
+ "value": "FluentAssertions",
+ "title": "A very extensive set of extension methods."
+ },
+ {
+ "value": "FluentUI",
+ "title": "Fluent UI Library"
+ }
+ ]
+ }
+ }
+}
+```
+++
+## Code sample
+
+|Sample name | Description | C# | Node.js |
+|-|--|--|-|
+| Type ahead search control on Adaptive Cards | The sample shows the features of static and dynamic type ahead search control in Adaptive Cards. | [View](https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-type-ahead-search-adaptive-cards/csharp) | [View](https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-type-ahead-search-adaptive-cards/nodejs) |
+ ## See also * [Universal Actions for Adaptive Cards](Universal-actions-for-adaptive-cards/Overview.md)
-* [Task modules](../what-are-task-modules.md)
+* [Task modules](../what-are-task-modules.md)