MS Graph:为同一团队内的多个渠道创建 webhook [英] MS Graph : Create webhooks for multiple channels within same team

查看:71
本文介绍了MS Graph:为同一团队内的多个渠道创建 webhook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MS Graph API 是否支持为每个团队创建 webhook,而不是每个团队或整个组织范围内的每个频道.我看到可以创建 2 个不同的 webhook:1.teams/allMessages 和 2.teams/{team_id}/channels/{channel_id}/messages

Does MS Graph API support webhooks to be created per team instead of per channel per team or complete org wide. I see there are 2 different webhooks that can be created : 1. teams/allMessages and 2. teams/{team_id}/channels/{channel_id}/messages

第一个订阅租户/组织范围内的所有团队,而第二个更细化.当我订阅第二个频道时的问题是,在创建一个订阅后,如果我想订阅同一团队内的另一个频道,MS 图返回错误 -

The first one subscribes to all teams tenant/org wide, whereas the second is more granular. The problem when I subscribe with second one is, after creating one subscription if I want to subscribe to another channel within the same team, MS graph returns an error -

"error": {\r\n "code": "ExtensionError",\r\n "message": "Operation: Create; Exception: [Status Code: BadRequest; Reason: App <app-id> has reached its limit of 1 TEAMS/<team-id>/CHANNELS/<channel-id>/MESSAGES subscription on tenant <tenant-id>."

我们如何订阅同一团队内的多个频道?

How can we subscribe to multiple channels within the same team?

推荐答案

您应该能够为每个应用程序的每个频道提供一个有效订阅.

You should be able to have one active subscription per channel per application.

此外,对于所有应用程序,每个租户的团队消息订阅限制为 10000 个.

Additionally there is a limit of 10000 subscriptions for teams messages per tenant for all applications.

检查您是否没有超过该限制,并且您没有尝试为同一频道创建第二个订阅

Check that you're not over that limit and that you're not trying to create a second subscription for the same channel

这篇关于MS Graph:为同一团队内的多个渠道创建 webhook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆