Can I use enumerations as parameters in Microflows when using the Mendix Client API?

0
Hi, I'm calling a microflow that has an enumerations as parameter from a custom widget. However, I'm unable to make this work as I cannot specify a GUID of this enumeration in the params of the mx.data.action function. How do I instantiate a enumeration in my widget and use this as a paramter in a microflow executed with mx.data.action() ? Greetings, Niels de Haas  
asked
4 answers
1

Hello Niels, 

Have you tried using a string value that is a key of your enum?

answered
0

set the enum on an object an pass the guid to the microflow?

don't know of a way to pass the enum directly from the front end.

answered
0

Hi Stèphan,

That crossed my mind as well, I would have liked to avoid creating another object, but I guess there is no other way.

Thanks for the response :)

answered
0

Hi Dragos,

I also cannot directly use a string as a parameter in the mx.data.action() call, I think that I will make a NP containing all of the data types and use this to execute the microflow.

Greetings,
Niels 

answered