Activities
latest
false
Classic Integrations Activities
Last updated Jun 17, 2024

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.

  1. Complete the Setup steps.
  2. Add the Slack Scope activity to your project.
  3. 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.

  1. Add the Reply activity after the Search or Get Messages activity.
  2. Enter values for the Input properties.
  3. Create and enter a Message variable for your Output property.
  4. Run the activity.

In the Body of the Activity

  • Message - The message that you want to reply to. Enter a Message variable.
    • To enter your Message variable, 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))
  • File - The path to a local file that you want to attach in your reply. Enter a String or String variable. 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 String or String variable. 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 Boolean or Boolean variable. Defaults to true if not specified.
  • Reply - Your reply returned as a Message object. 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 Strings or String variables.
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 ResponseStatus variable (UiPath.BAF.Models.ResponseStatus). The ResponseStatus object 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.
  • Overview
  • How it works
  • In the Body of the Activity
  • Properties

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.