AX 2009 and dynamic CLR arrays


I’m invoking an external web service and it is returning an array, whose length is only known at run time. All the examples I’ve seen so far define CLR arrays of fixed length at compile time.

I was wondering how I would define and access a dynamic CLR array.


What’s the problem?
For example, are you trying to iterate the array and you don’t know how to find the last index? If so, call get_Length() and subtract one.

Thanks Martin. Yep, get_Length() gave me the info I needed.