Skip to main content

Get channel by name

Find the id of a team's channel from its display name.

Command in the Microsoft 365 toolkit · id ooa.microsoft365/get_channel_by_name · 5 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Team IDStringNoTeam id; or give team_name instead.
NameStringYesChannel display name (not case-sensitive), e.g. General.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.
Team nameStringNoTeam display name (not case-sensitive), among the teams the signed-in user belongs to; used instead of team_id.

Outputs​

OutputTypeWhat it is
channel_idStringChannel id.