Reply
UiPath.Slack.Activities.Messages.Reply
Overview
The Reply activity uses the Slack chat.postMessage API to reply to a specific message (Message).
After sending the reply, the activity returns its properties in Message object (Reply) that you can use as input property variables in subsequent activities (e.g. Get Replies, Message.Text in , 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 Reply activity after the Search or Get Messages activity.
-
Enter values for the Input properties.
-
Create and enter a
Messagevariable for your Output property. -
Run the activity.
In the Body of the Activity
- Message - The message that you want to reply to. Enter a
Messagevariable.- To enter your
Messagevariable, use the Messages output property variable from either the Search activity or Get Messages activities. - When using the Messages output property, be sure to specify which item in the array that you want to use (e.g., slackMessages(0))
- To enter your
- File - The path to a local file that you want to attach in your reply. Enter a
StringorStringvariable. Either the File or Text property is required. You can enter values in both properties. - Text - The body of text that you want to send in your reply. Enter a
StringorStringvariable. Either the File or Text property is required. You can enter values in both properties. - As User - Send this reply as user or bot. Defaults to true (send as user). Enter a
BooleanorBooleanvariable. Defaults to true if not specified. - Reply - Your reply returned as a
Messageobject. Enter aMessagevariable. 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 -