capabilities.work

Broadcast to Joined Team Channel

A 3-step recipe with Microsoft Teams. We can help you get access.

Recipe · 3 steps

Broadcast to Joined Team Channel

From the user's joined teams, resolve a channel and post a broadcast.

  1. List the teams the current user has joined so the caller can confirm the target team is reachable.
  2. List the channels in the chosen joined team to confirm the target channel exists before posting.
  3. Post the broadcast message into the chosen channel.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer token with Team.ReadBasic.All, Channel.ReadBasic.All, and ChatMessage.Send scopes.
  • teamId: The id of one of the user's joined teams to broadcast into.
  • channelId: The channel id to post the broadcast message to.
  • broadcastMessage: The HTML body of the broadcast message.
For your developer

Arazzo workflow microsoft-teams:broadcast-to-joined-team-channel, 3 operations: listJoinedTeams → listChannels → sendChannelMessage. Specs on APIs.io.