Get Replies
UiPath.Slack.Activities.Messages.GetReplies
Overview
The Get Replies activity uses the Slack conversations.replies API to retrieve the replies associated with a specific message (Message).
After retrieving the replies, the activity returns the properties in a Message[] object (Replies) that you can use as input property variables in subsequent activities (e.g., Message(0).Files in Download File, etc.).
How it works
The following steps and message sequence diagram is an example how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.
-
Complete the Setup steps.
-
Add the Slack Scope activity to your project.
-
Complete one of the following two options (A or B):
A. Add the Search activity inside the Slack Scope activity.
B. Add the Get Messages activity inside the Slack Scope activity.
-
Add the Get Replies activity after the Search or Get Messages activity.
-
Enter values for the Input properties.
-
Create and enter a
Message[]variable for your Output property. -
Run the activity.
In the Body of the Activity
- MaxResults - The maximum number of messages that you want returned in the
Messagearray. Enter aInt32orInt32variable. - Message - The message from which you want to get replies from. Enter a
Messagevariable. To enter yourMessagevariable, use the Messages output property variable from either the Search activity or Get Messages activities. - Replies - The replies associated with your specified Message. Enter a
Message[]variable. If you plan to use the activity to process the array output, select UiPath.Slack.Models.Message as the TypeArgument.
Properties
Common
- DisplayName - The display name of the activity. This field supports only
StringsorStringvariables.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Output
- ResponseStatus - The status of the request (success/failure information). Enter a
ResponseStatusvariable (UiPath.BAF.Models.ResponseStatus). TheResponseStatusobject includes three properties that you can use in other activities.- Success -
Boolean- Specifies whether the API request was successful. - ErrorCode -
String- The response error if the API request is unsuccessful (Success=False). - Message -
String- The error message.
- Success -