Is it possible to convert an enumeration in Mendix to a String?
Hello! We are trying to create a REST service to communicate with Pega and we have used an enumeration in Mendix however, Pega are unable to do this so they are sending/expecting a string. Is there any way we could convert our enumeration to a string to send to PEGA? Thank you!!
You could create a microflow which accepts an enumeration value, checks each enum value and then pass a literal string value or use the getCaption function. ex. getCaption(MyFirstModule.Test.Hello)
You can use an additional string attribute and getCaption or getName in order to send the enum value.
For receiving the simplest way IOP is to use if else statements and manually parse the string to the correct enum value.