Get channel id by name
Find a channel's id from its name, e.g. #ops-alerts.
Command in the Slack toolkit · id ooa.slack/get_channel_id_by_name · 5 inputs (2 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Bot token | Credential | Yes | Slack bot token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Name | String | Yes | Channel name, with or without the leading #. | |
| Include private | Boolean | No | true | Also look in private channels the agent belongs to. |
| Include archived | Boolean | No | false | Also look in archived channels. |
| Endpoint address | String | No | https://slack.com/api | API endpoint; change only for testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| channel_id | String | Channel id, e.g. C0123456789. |