I wanted the name of the selected country in a string. There is a nice microflow in this app that converts the country to string. Only it is not converting the caption name, but the name of the enumeration. So I get United_Kingdom instead of United Kingdom in my string. I thought I could change this easily, but how do I retrieve the caption of an enumaration? A work around offcourse could be to just replace the underscore but I really would like to retrieve the caption, because then I have the right language of the user as well. Is it still only possible through Java like mentioned in this post how to retrieve caption in Java.
asked
Ronald Catersels
1 answers
2
The caption of an enum can be retrieved in a microflow with the function getcaption.
E.g. in a MF create a string that you set to:
getCaption($entity/enum-attribute)
This will return the string in the user's language.