UiPath Activities

The UiPath Activities Guide

Message Box

UiPath.Core.Activities.MessageBox

Description

Displays a message box with the specified text and button options.

Important!

Due to internal changes, this activity will no longer be visible in the Favorites list when upgrading to v20.4 or newer, if it was added to the Favorites list with a v19.4 or older version of UiPath.System.Activities.

Properties

Input

  • Buttons - Specifies which buttons to be displayed in the message box.
  • Caption - The title of the message box dialog.
  • Text - The text to be displayed in the message box.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
  • TopMost - If selected, always brings the message box to the foreground.

Output

  • ChosenButton - A String variable that specifies which of the buttons specified in the Buttons property has been clicked during run time. The possible options are: Ok, Yes, No or, Cancel.

Note:

You cannot manually add a value into this property field at design time. To use it, create an empty variable and assign it to this field. At run time, depending on which button is clicked by the human user that interacts with the message box, you can customize the way your automation continues to run.

Common

  • DisplayName - The display name of the activity.

UiPath.Core.Activities.MessageBox

Description

Displays a message box with the specified text and button options.

To learn how to use this activity, see Tutorial: Working with Files and Folders.

Configuring the Activity

In the Body of the Activity

To specify the text to display in the message box, click Plus plus button on the right side of the field, and then choose one of the available options from the menu:

  • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell, or indicate a field from a selected email in Outlook to display its contents in the message box.
  • Use Saved Value - Select a value that you previously saved for later use in the project.
  • Text - Enter a message in the Text Builder.
  • Number - Enter a numeric value.
  • Ask when run - Prompt for a text when the project is executed.
  • Open in Advanced Editor - Enter a VB expression.

In the Properties Panel

Common

  • DisplayName - The display name of the activity.

Input

  • Buttons - Select which button options to display in the message box: Ok, OkCancel, YesNoCancel, or YesNo. By default, message boxes include an Ok button.
  • Caption - The title of the message box dialog.
  • Text - The text to be displayed in the message box.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
  • TopMost - If selected, the message box always appears in the foreground.

Output

  • ChosenButton - Optionally, save the value of the button clicked when the project is executed. Depending on the selection for the Buttons property, the output value can be one of the following: Ok, Yes, No, or Cancel.

Updated 2 months ago


Message Box


Suggested Edits are limited on API Reference Pages

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