Is there any way to loop through all the enum values for a enum from a service reference in AX2009?
Asked
Active
Viewed 86 times
0
-
I'm not sure what you mean with service reference in this context, but have you tried one of the Google results, e.g. [Iterate through enum](http://dynamicsuser.net/forums/p/37069/191652.aspx)? – FH-Inway Jan 05 '16 at 11:08
-
You should be able to find all possibilities in the WSDL. And thus in the object browser in visual studio consuming the service. – Reinard Jan 05 '16 at 12:31
-
@Reinard: I know that that is possible, but I want to be able to do it in the code. – user3660338 Jan 05 '16 at 12:57
-
@FH-Inway: I have looked into it, but they require that you pass a type as the argument and I could not figure out how to find/set/pass the type for the enum from the service reference. – user3660338 Jan 05 '16 at 12:58