Microflow - HRM App

0
Hi I cannot find the level(enumerator "level") in the expression wizard. Where am I going wrong?
asked
1 answers
1

Hi Ntuthuko,

I guess you're asking how to evaluate in your microflow if your attribute has a certain value from an enumeration.

I guess there are three things good to know, if you have a attribute with an enumeration you can just compare it as:

$MyEntity/EnumAttribute = MyModule.Enumeration_Level.Value1

If you would like to compare a string value against an enumeration value then you have 2 possibilities, you can compare to the caption like this:

getCaption($MyEntity/EnumAttribute)

or against the value with:

getKey($myEntity/EnumAttribute)

You also could compare a string value straight to an enumeration value.

More info here:

https://docs.mendix.com/refguide4/enumerations-in-microflow-expressions

Regards

answered