Access the all dimensions in C#

Hello Friends,

I have created a web service in AX and consuming in C#.

Now i want to access the department, Cost Center & Purpose i.e all dimension.


Hi Darshana,

To access dimensions values, you can use the following code:

Your_Table.Dimension[Dimensions::code2ArrayIdx(SysDimension::Department)]; for department dimension, replace for the others

to update dimension values, specify the array index value you want to update

Your_Table.dimension[1] = …Dimension[Dimensions::code2ArrayIdx(SysDimension::Department)];