Subscribe

UiPath Activities

The UiPath Activities Guide

Send Message

Overview

The Send Message activity uses the Slack chat.postMessage API (among others) to send a message (Text) to a specific channel or direct/group message (Conversation).

A Conversation can be one of the following:

  1. A channel
  2. A direct message to an individual
  3. A group direct message to multiple individuals

After sending the reply, the activity returns its properties in Message object (Message) that you can use as input property variables in subsequent activities (e.g. Get Replies, Message.Text in Write Line, etc.).

How it works

The following steps are 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. Add the Send Message activity inside the Slack Scope activity.
  4. Enter values for the Input properties.
  5. Create and enter a Message variable for your Output property.
  6. Run the activity.

Properties

The values for the following properties are specified when adding this activity to your project in UiPath Studio.

Common

DisplayName

The display name of the activity.

Attributes

Details

Type

String

Required

Yes

Default value

Reply

Allowed values

Enter a String or String variable.

Notes

N/A


Input

Conversation Type

The type of conversation you want to get messages from

Attributes

Details

Type

enum

Required

Yes

Default value

Channel

Allowed values

Channel, Direct Message, Group Message

Notes

N/A

Channel Name

The name of the channel to get messages from.

Attributes

Details

Type

String

Required

Yes, if (Conversation Type) is Channel and Channel ID is not supplied.

Default value

Empty

Allowed values

String or String variable

Notes

N/A

Channel ID

The ID of the channel to get messages from.

Attributes

Details

Type

String

Required

Yes, if (Conversation Type) is Channel and Channel Name is not supplied.

Default value

Empty

Allowed values

String or String variable

Notes

N/A

User Name

The name of the user who's DM you want to get messages from.

Attributes

Details

Type

String

Required

Yes, if (Conversation Type) is Direct Message

Default value

Empty

Allowed values

String or String variable

Notes

N/A

Conversation ID

The ID of the Group Direct Message you want to get messages from

Attributes

Details

Type

String

Required

Yes, if (Conversation Type) is Group Message

Default value

Empty

Allowed values

String or String variable

Notes

Direct messages between one or more users take the form of "mpdm-Person1--Person2--Person3-1".


File

The path to a local file that you want to attach in your reply.

Attributes

Details

Type

String

Required

Yes (if the Text property is empty)

Default value

Empty

Allowed values

Enter a String or String variable.

Notes

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 message.

Attributes

Details

Type

String

Required

Yes (if the File property is empty)

Default value

Empty

Allowed values

Enter a String or String variable.

Notes

Either the File or Text property is required. You can enter values in both properties.


Output

Message

Your sent message returned as a Message object.

Attributes

Details

Type

Message

UiPath.Slack.Models.Message

Required

No (recommended if you plan to use the output data in subsequent activities)

Default value

Empty

Allowed values

Enter a Message variable.

Notes

If you plan to use the For Each activity to process the array output, select UiPath.Slack.Models.Message as the TypeArgument.

Updated 27 days ago


Send Message


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.