User Manual

Slack Get Channel History

2/10/25
Slack Get Channel History

Slack Get Channel History is used to list past messages in a specific Slack channel. It allows you to pull message content from the channel into your application.

Technical Specifications

Output Type:

  • Slack_slack_get_channel_history_Response (One): The list of channel messages returned from the Slack API comes in this object.

Parameters:

  • settings (Object – required): Settings defined in Configuration Manager for Slack integration.
  • channel_id (String – required): The ID of the Slack channel from which messages will be retrieved.
  • limit (Int32 – optional): Specifies how many messages to retrieve. (Default 0 → unlimited or API default limit).

Office Usage

1. Adding an Action

  • Open your project on the Kuika platform.
  • Go to the UI Design module and add a button.
  • Select the button and add the OnClick → Slack → Slack Get Channel History action from the + ADD ACTION menu.

2. Defining Parameters

  • settings: Select the Slack connection registered in the Config Manager.
  • channel_id: Enter the ID of the Slack channel you want to retrieve.
    • Example: C024BE91L
  • limit: Enter a numerical value for how many messages to list.
    • Example: 50 → Retrieves the last 50 messages.

Using the Returned Data

The result from Slack is a JSON object containing the messages. It includes:

  • User information
  • Message content
  • Timestamp information.

This data can be:

  • Displayed on a List or Chat UI on the application screen.
  • Filtered to retrieve only messages from specific users.

Project Management Panel

In a team management panel, you want to display the latest conversations from the Slack channel.

Steps:

  1. The administrator enters the relevant project page in the panel.
  2. The Slack Get Channel History action is triggered in PageInit.
  3. The ID of the project's Slack channel is entered as a parameter.
  4. The last 20 messages are listed on the screen.
  5. The user can view the conversations without entering Slack from the panel.

Slack Get Channel History Advanced Customizations

  • Pagination: When a large number of messages are to be retrieved, data can be fetched page by page by setting a limit.
  • User Filtering: Only messages from specific people can be displayed by using the user field in the returned data.
  • UI Integration: The returned messages can be visualized on the Chat element.
No items found.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar