The Slack List Channels action is used to retrieve a list of all channels in a Slack workspace. This action allows your application to query existing channels and present them to the user. It is particularly useful in scenarios such as team management, channel selection, reporting, or messaging integrations.
Technical Specifications
Get Channel List: The Slack List Channels action retrieves information about all channels via the Slack API.
Parameter Compatibility:
settings (Object – required): Configuration information required for Slack integration.
limit (Int32 – optional): Maximum number of channels to return. Recommended for performance.
cursor (String – optional): Used for pagination; the cursor value returned from the API must be entered to retrieve the next channel list.
Value Binding: Fixed values can be entered, or dynamic values (Action Result, Current, Form Component, Screen Input, etc.) can be bound via the Symbol Picker tool.
Web & Mobile Support: The action can be used in both web and mobile applications.
Slack List Channels Action Application Steps
1. Defining the Action in UI Design
Open your project on the Kuika platform.
UI Design module, select the screen where you want to display the channel list.
Add a button (e.g., “List Channels”).
Select the button and add the OnClick → Slack → List Channels action from the + ADD ACTION menu.
2. Configuring Parameters
settings (required): Select the defined settings for Slack integration.
limit (optional): For example, if you enter 20, it will return a maximum of 20 channels.
cursor (optional): If you want to get the channels after the first query, enter the cursor value returned from the previous call here.
Use Case: Displaying Slack Channels in the Application
It can be used in a team management application to show the user a list of all existing channels in Slack.
Steps:
Add a button in UI Design: “List Channels”.
Add the OnClick → Slack → Slack List Channels action.
Enter a value such as 20 in the Limit parameter.
Display the returned channel results in a Table element.
Slack List Channels Advanced Customizations
Pagination: If the number of channels exceeds the limit, you can add a “Show More” button with the cursor parameter.
Filtering: The returned results can be filtered by channel type (public, private).
Dynamic Usage: The limit value can be obtained from an input field according to user preference.
Technical Risks and Controls
The settings parameter must not be empty.
cursor should only be used with valid values returned from the API.
If the limit is set too high, it may cause performance issues.