Constraints in Data Types

You can set two types of Constraints when you create a data type in the Cloud Studio. The Required constraint and the Enumeration constraint.

Required

The Required constraint allows you to set a data field that must be provided later on in the Input Parameter of a trigger.

For example, if you add the New Field mailAddress with the Required constraint (1), you must provide this data to be able to create the trigger (2).

Enumeration

The Enumeration constraint allows you to define a set of several values for a data field. Meaning that you can limit the choice of values to provide for a data field, in the Input Parameter of a trigger.

For example, if you add the New Field role with the Enumeration constraint and set several values (1), you must provide one of the values you previously set, to be able to create the trigger (2).