Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Slack connection the step signs in with. |
| Kinds of conversation | A comma list. A private channel only appears when the bot is a member of it. |
| Leave archived channels out | true/false |
| Channels per call | 1 to 1000. Slack recommends 100 to 200. |
| Fetch every page | Follows Slack's page cursor, and refuses past 5,000 channels rather than answering a short list. |
| Workspace id | Only on an Enterprise Grid org, to read one workspace's channels. |
| Cursor | Paste a previous run's Next cursor to read the page after it. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `slack`) |
types | text, by default "public_channel" |
excludeArchived | true/false, by default true |
limit | number, by default 200 |
returnAll | true/false, by default false |
teamId | textits `{{ }}` must give a string |
cursor | text |
Output
| Field | Type |
|---|---|
channels | array |
channelCountChannels in this answer | number |
hasMoreMore channels are waiting behind this page | boolean |
nextCursorCursor for the next page | string |
Sample output, and the expression for each field
- channelCount0
- channels[]
- hasMorefalse
- nextCursor""
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"cursor": "",
"excludeArchived": true,
"limit": 200,
"returnAll": false,
"teamId": "",
"types": "public_channel"
},
"label": "List channels",
"type": "slack.listChannels",
"version": 2
}Older versions
A flow that already has this version keeps running it. A new step always gets the newest.
Version 1
| Setting | What it is |
|---|---|
| ConnectionRequired | The Slack connection the step signs in with. |
| Kinds of conversation | A comma list. A private channel only appears when the bot is a member of it. |
| Leave archived channels out | true/false |
| Channels per call | 1 to 1000. Slack recommends 100 to 200. |
| Fetch every page | Follows Slack's page cursor, and refuses past 5,000 channels rather than answering a short list. |
| Workspace id | Only on an Enterprise Grid org, to read one workspace's channels. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `slack`) |
types | text, by default "public_channel" |
excludeArchived | true/false, by default true |
limit | number, by default 200 |
returnAll | true/false, by default false |
teamId | textits `{{ }}` must give a string |