1
votes

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

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?

1

1 Answers

2
votes

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

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