Getting the IDs from Teams

IDs Needed

When you work with proactive notifications, you need three IDs to be able to send a notification to Teams

From the Bot Response Webhook Handler

There are several ways to go about getting these IDs but one helpful way is that every time your bot is added to a new Team, those IDs get sent to the Rewst webhook. New channels that also get added to a team after the bot is installed are also sent. You can build a sub-workflow that handles how to document those IDs based on the response you get in the JSON payload.

Using Graph API

A second way to get these IDs is to use the Graph API:

Graph API Call to List Teams to Obtain IDs
Graph API Call to List Channels of Teams to Obtain Channel IDs

With those two calls you can discover the IDs for the team and channel. Using this way, you shouldn't need to dig for tenant IDs since to make the calls you would have to have had those in your system already.

Last updated