Getting the IDs from Teams
Last updated
Last updated
When you work with proactive notifications, you need three IDs to be able to send a notification to Teams
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.
A second way to get these IDs is to use the Graph API:
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.