Validation for Enumeration attribute values in a microflow decision
0
Hi All, I have created an enumeration attribute with values, say, A,B & Other. There’s also a text field that is made visible if user selects option ‘Other’. Now, I want to validate that the text field is NOT empty. To do this I have created a decision in the microflow and trying to add an expression as below. The issue here is, I’m seeing the highlighted errors because I’m trying to parse ‘Other’ enumeration value as a string. Could someone please suggest the correct method/syntax to validate an enumeration attribute value in a microflow decision?
asked
Lalit Deshpande
1 answers
4
Hi,
Instead of string value use the enum to compare the value.
For eg: $Entity/EnumVariable = ModuleName.EnumName.EnumValue