Activities
latest
false
Banner background image
Integration Service Activities
Last updated Apr 23, 2024

Send Message to User

UiPath.Slack.IntegrationService.Activities.SendMessageToUser

Description

Sends a message to an individual user.

Project Compatibility

Windows | Cross-platform

Configuration

  • Connection - The connection established in Integration Service. Access the drop-down menu to choose, add or manage connections. This field supports only strings or String variables.
  • User - Type the email, name or ID of the user. If user is not found in the drop-down, you can retrieve and pass the user email from Slack application -> Navigate to that user's profile by clicking on "View full profile" under user's "About" page -> Copy the "Email Address" or you can also pass your Slack username/handle by adding "@" as prefix.
  • Message - The formatted text of the message to be sent.
    Note: All the markdown formatting options are supported.
  • Send as - Specifies whether to send the message as the App bot by using the Bot token or as yourself by using the User token.
  • Message fields - Enter field/values in the following format: field1:value;field2:value. These fields are displayed below the main section text in a 2-column format. You can also enter variables such as ID, name, event trigger output etc. This field supports String type input.
  • Buttons actions - Button action properties in comma-separated format: action ID (required), action name (required), style (primary/danger), confirmation title, confirm ok title, confirm deny title. A maximum of five button actions separated by ; can be provided. For example: action1,Approve,primary;action2,Reject,danger;Confirm,Sure?,Yes,No. All action properties (except style) are customer/user defined. Action names IDs must be unique among buttons. Confirmation title, text, ok title, deny title must be used together. This field supports String type input.
  • Image URL - The URL of the secondary image attachment can be shared as part of the message. The image will always be at the bottom of the entire message block. This field supports String type input.

Manage Properties Wizard

The Manage Properties Wizard can be used to configure or use any of the object’s standard or custom fields by selecting and adding them to the activity canvas. The added standard/custom fields are available in the Properties panel (in Studio Desktop) or under Additional options (in Studio Web).

Advanced

Options

  • Formatting Options (parse) - Change how messages are treated. Pass “none” for removing hyperlinks and pass “full” to ignore slack’s default formatting.
  • Link names - Specifies whether to link and mention all the user groups automatically if the respective names are mentioned in the text message.
  • Unfurl links - Specifies whether to display the preview of the links mentioned in the text message.
  • Bot Name - Only supported with “Bot Token” connection. Customize the bot’s user name while sending messages. The bot name will be defaulted to “UiPath” if nothing is passed.
  • Bot icon - Only supported with “Bot Token” connection. Customize the bot’s icon with an emoji available in the workspace. For example, ":chart_with_upwards_trend:". If we provide an emoji that is not available in the workspace, it will be ignored.

Output

  • Message timestamp - The ID (timestamp) of the message sent.
  • Channel - The output send message to user.

Example

You can provide the following input for Buttons actions and Message fields:


The final Slack button message will look as follows:


When you click the Reject button, a confirmation dialog box is displayed:


You can configure the response to the above button clicks in a separate workflow using the Button Clicked event. To ensure the button is clicked only once, use Send Button Response in the workflow along with Button Clicked to replace or delete the button message after first click.

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.