Create enum type
- Last UpdatedAug 17, 2026
- 2 minute read
You can add enumeration sets as properties to a type while completing Create type. However, before you can add the enumeration set to the type, you must create the enumeration independently. Then later, when creating a standard type, you can add the enum type as a property. Think of an enum type as a module that you can add to a standard type.
Use this option to create a type constrained to a specific list of options. For example, if you are storing the status of a machine, the possible statuses might be defined as an enumeration set with values like: Success, Error, or Unknown.
To add an enum type
-
In the navigation rail, select Data stores.
-
From the Change data store dropdown, verify that the data store instance containing the resources and data you want to work with is selected.
-
Select the Streams card.
-
Select the Streams types tab.
-
Choose Create type.
The Create type side sheet opens.
-
Select Enum type.
-
Enter identification information for the type.
Complete the following fields:
-
ID: Identifier for the type.
-
Name: Name for the type.
-
Description: A description of the type.
-
-
From the Enum type dropdown list, select the data type that you want to use for the enumeration. For a list of supported enumeration data types, see Supported enum types.
-
Enumerate the enum type. Add a property for each member of the enumeration, mapping an identifier to each value.
For example, you can add three properties, assigning enumerator identifiers to a value, such as: Success = 0, Error = 1, and Unknown = 255.
-
Choose Add Property.
-
In ID, enter an identifier for the enumerator.
-
In Value, enter an integer for the enumerator.
-
Repeat the substeps to complete the enumeration set.
-
-
Choose Save.
The enum type is added to the system. You can now add the enum type as a property for a standard type while completing Create type.