Bojensen Blogs

Tag: AX2012

How to loop through a Map in AX 2012

  Map iim = new Map(Types::Integer, Types::Class); MapIterator it; // Add some elements into the map iim.insert(1, new query()); iim.insert(2, new query()); iim.insert(4, new query()); // Create a map iterator it = new MapIterator (iim); // Print "[int -> class] iterator" print it.definitionString(); // Go on for as long as elements are found in the…

How to copy configuration and setup data from one environment to another environment in Microsoft Dynamics AX 2012

In Microsoft Dynamics AX 2009, the duplicate company feature was used extensively to copy data from one company to another. The feature was also used to build development or test environments, UAT, Preproduction and deployment scenarios that moved data from one environment to another. For example development to test environment, test environment to UAT environment, Pre production to Production environment etc. However this feature became obsolete in Microsoft Dynamics AX 2012.