Slack Get

Slack Get

Certified

Get Slack reactions for an item

Fetches reactions on a message, file, or file comment and writes them to storage. Requires reactions: read.

yaml
type: io.kestra.plugin.slack.app.reactions.Get

Get reactions for a message

yaml
id: slack_get_reactions
namespace: company.team

tasks:
  - id: get_reactions
    type: io.kestra.plugin.slack.app.reactions.Get
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "#general"
    timestamp: "{{ outputs.previous_task.timestamp }}"

Get reactions and process them

yaml
id: slack_process_reactions
namespace: company.team

tasks:
  - id: post_message
    type: io.kestra.plugin.slack.app.chats.Post
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "#general"
    messageText: "React to this message!"

  - id: get_reactions
    type: io.kestra.plugin.slack.app.reactions.Get
    token: "{{ secret('SLACK_TOKEN') }}"
    channel: "#general"
    timestamp: "{{ outputs.post_message.timestamp }}"

  - id: log_reactions
    type: io.kestra.plugin.core.log.Log
    message: "Reactions file: {{ outputs.get_reactions.uri }}"
Properties

Channel containing the message

Channel ID or name for the target message. To get the channel ID, right click on the channel name in Slack and select 'Copy Link'. The ID is the last part of the URL.

Slack token

File ID (optional)

Use when retrieving reactions for a file.

File comment ID (optional)

Use when retrieving reactions for a file comment.

Reference (ref) of the pluginDefaults to apply to this task.

Message timestamp (optional)

Slack ts of the message; required when targeting a message.

Formaturi

URI of stored reactions file

The number of records fetch.