AX7: Moving elements from a Package\Model to another

The easiest way that I found to move some elements from a Package\Model to another.

On the example i’ll create a new class on the “FleetManagement” Package and i’ll move that element to  a new Model on Application Suite.

I create a new class called MyClass on the FleetManagement model.

MoveElements

For some reason I discovered that I create my project and the class on the wrong Model\Package. To move to the right package go to the C:\Packages\FleetManagement\FleetManagement\AxClass folder to the FleetManagement.

MoveElements2.PNG

Cut the object from the wrong folder and paste on the right folder, in my case on the my model “ModelTestSuite” under ApplicationSuite. If you are using version control, copy the file and delete using the Source Control on VS.

MoveElements3

Create a new project for the correct model and VS Application Explorer search for the element, right click and add to you project.

MoveElements4

Build your project and just in case build the AX to make sure that your are not breaking any other code. If using version control, check-in the delete action for the previous file and the add action for the new class on the right package\model.

MoveElements5

 

AX7: Moving elements from a Package\Model to another

One thought on “AX7: Moving elements from a Package\Model to another

  1. Sukrut says:

    Thanks for the info ..another way to do this is you can create new Project within solution Referencing New package cut Object From Package where it belongs to and paste in new project referencing your new package and files in the base folder are moved automatically .

    Like

Leave a comment