CreateValidationItem

The CreateValidationItem activity enables you to display a message in the UI when a workflow is executed.

alert This activity can only be used with Saving events.

If the same event triggers multiple validation items, the validation messages are consolidated in one message box titled "Custom Validation Message".

CreateValidationItem

Properties

CreateValidationItem Properties
Property Value Required Notes
DisplayName String No Specify a name for the activity or accept the default.
Message InArgument<String> Yes Specify the text of the validation message, for example:

"Please enter a mobile phone number."

Messages InArgument
<ICollection<ValidationMessage>>
Yes In the Messages field of the Properties pane, enter the following VB code:

args.ValidationMessages

Message Type ValidationMessageType Yes Select a value in the drop-down list of the activity in the Designer window. The options are:

  • Error
  • Information
  • Warning

Result OutArgument<ValidationMessage>
No If necessary, specify the out argument using a VB expression or variable.

To see how CreateValidationItem can be used in a workflow, refer to: