Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Messages methods and components

Updated on October 19, 2022

Use these options to display message boxes, input boxes, or toast notifications in your automations.

The following tables show the methods and components that are available:

Methods

MethodDescription
ShowMessageBoxDisplays a message box and returns a result. The overload methods allow you to select the following parameters:
  • string message
  • string message, string caption
  • string message, string caption, buttons
  • string message, string caption, buttons, icon
  • string message, string caption, buttons, icon, defaultButton
  • string message, string caption, buttons, icon, defaultButton, options
  • string message, string caption, buttons, icon, defaultButton, options, Window owner
ShowInputBox Displays a text message or a question to a user, with a box that allows the user to type input. The text message that is displayed is the string argument that you provide. The overload methods allow you to select the following parameters:
  • string message
  • string message, string caption
  • string message, string caption, buttons
  • string message, string caption, buttons, icon
  • string message, string caption, buttons, icon, defaultButton
  • string message, string caption, buttons, icon, defaultButton, options
  • string message, string caption, buttons, icon, defaultButton, options, Window owner

Components

ComponentDescription
ToastNotificationUse to display toast-style notifications. A toast notification is a nonmodal window element that you can use to display brief messages that automatically expire.
Toast notification
Figure showing example of Toast notification.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us