SLACK.CHANNEL.LIST
This is a premium feature.
Lists all channels within a Slack workspace.
This functions takes an optional JSON parameter to define more advanced settings and additional options.
Please refer to https://api.slack.com/methods/conversations.list for more information about available and supported options (as of 2021-05-17).
Syntax
=SLACK.CHANNEL.LIST(Token [, ResponseTarget, OptionsJSON ])
Arguments
Name | Description |
---|---|
Token | A token which is registered to a workspace and has required access rights |
ResponseTarget | Optional. Specify inbox, outbox, cell or cell-range to write any response to |
OptionsJSON | Optional. A JSON which contains additional options |
Return Value
A unique random request ID which can be used with REQUESTINFO to check the state of the request. In case of an error the corresponding error-code is returned.
Example
A | B | |
---|---|---|
1 | limit | 10 |
Function | Comment |
---|---|
=SLACK.CHANNEL.LIST("123key",INBOX()) | Requests all available channels and sends server response to inbox |
=SLACK.CHANNEL.LIST("123key",INBOX(), JSON(A1:B1)) | Same as before but limits channels in response |