Get Replies
AutomatR.Slack.Activities.GetReplies
The "Get Replies" activity in AutomatR is part of the Slack Messages activities package, utilizing the Slack API to retrieve replies associated with a specific message. This activity facilitates the integration of Slack messaging functionality into automation workflows.
Properties
Name | Description |
---|---|
Input | |
Channel Name | The name of the channel from which to retrieve replies. String variables containing the desired channel name. |
Time Stamp | The time stamp around which replies are fetched. String variables containing the timestamp for fetching replies. |
Limit | The limit of the maximum number of replies to retrieve. Integer variables indicating the maximum number of replies to fetch. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Get Replies" activity. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Replies Response | Outputs a list of replies associated with the specified message. Variables of type List<RepliesResponse> to store the reply responses. |
How to use:
- Drag and drop the "Get Replies" activity onto the workflow.
- Configure the properties by specifying the channel name, timestamp, and optional limit for reply retrieval.
- Optionally, configure the delay.
- Execute the workflow to retrieve replies associated with the specified message in the Slack channel.
Example: Consider an example where the "Get Replies" activity is used to retrieve the most recent 5 replies from a message in the "General" channel:
Get Replies:
Delay: 2
Channel Name: "General"
Time Stamp: "1645623498.123456"
Limit: 5
Replies Response: repliesList
In this example, the activity fetches the most recent 5 replies associated with the message at the specified timestamp in the "General" channel. The response is stored in a variable named "repliesList" for further handling in the workflow.