简体   繁体   English

在 MS Teams 中为个人应用程序发送活动通知

[英]Send Activity Notification in MS Teams for the personal application

I have created one personal app which is added as in the Microsoft teams.我已经创建了一个个人应用程序,它被添加到 Microsoft 团队中。 Now I have a requirement to Send Activity Notification in Activity Feed for the users who match certain criteria.现在我需要在活动源中为符合特定条件的用户发送活动通知。

My question is related to the Send Notification Graph API.我的问题与发送通知图 API 有关。

When I try to add the activities in my manifest.json file it is not displayed in the App studio.当我尝试在 manifest.json 文件中添加活动时,它不会显示在 App Studio 中。 That section disappeared.那个部分消失了。

When I try to run the Graph API command it fails.当我尝试运行 Graph API 命令时,它失败了。

Can someone guide me with step by step implementation for the custom app?有人可以指导我逐步实施自定义应用程序吗?

Error I get when try in Graph Explorer在 Graph Explorer 中尝试时出现错误

The value of the topic must match the graph resource path.主题的值必须与图资源路径匹配。

You can use the activity feed notification APIs in Microsoft Graph to extend this functionality to your apps.您可以使用 Microsoft Graph 中的活动源通知 API 将此功能扩展到您的应用程序。 Requirements for using the activity feed notification APIs:使用活动提要通知 API 的要求:

  • The Teams app manifest must have the Azure AD app ID added to the webApplicationInfo section.(Teams app manifest version must be 1.7 or greater) Teams 应用清单必须将 Azure AD 应用 ID 添加到 webApplicationInfo 部分。(Teams 应用清单版本必须为 1.7 或更高版本)
  • Activity types must be declared in the activities section in manifest schema.活动类型必须在清单模式的活动部分中声明。
  • The Teams app must be installed for the recipient, either personally, or in a team or chat they are part of.必须为收件人安装 Teams 应用程序,无论是个人还是在他们所属的团队或聊天中。

For detailed steps,please follow below doc: https://docs.microsoft.com/en-us/graph/teams-send-activityfeednotifications#understanding-the-basics-of-activity-feed-notification有关详细步骤,请遵循以下文档: https://docs.microsoft.com/en-us/graph/teams-send-activityfeednotifications#understanding-the-basics-of-activity-feed-notification

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM