Overview In Visual Studio we have solution that contains multiple projects. These projects helps us to organize and manage the elements. Each project contain elements from only one model. In order to move elements from one environment to another in D365, It can be easily done by using project package file which contains list of … Continue reading AX – D365 – Import and Export project with multiple objects using Visual studio
Category: Projects
AX – D365FO – Change Parent Project of a given project
If you want to change a parent project to a given project follow this code It will create a RunBase class with two fields : Child ProjectParent Project In Child project you will put the project id you want to change the Parent. In Parent project you will put the project id that will be … Continue reading AX – D365FO – Change Parent Project of a given project
AX – D365FFO – Get all projects childs from a root Project
If you want to get all projct childs from a root project jus use ProjTable::getChildProjectsFromRootProject. The method returns a List of ProjTable. Here you can find an example on how to use it ProjId rootProj = projTable::getRootProjId(projId); List _projList = new List(Types::Record); List list = projTable::getChildProjectsFromRootProject(rootProj, _projList); Enumerator en; en = list.getEnumerator(); boolean found = … Continue reading AX – D365FFO – Get all projects childs from a root Project
AX- D365FO – Get the root project or all the ancestors of a given project in ProjTable
AX- D365FO - Get the root project or all the ancestors of a given project in ProjTable follow these instructions. To get the root project of a given project ProjTable::getRootProjId(ProjId) Returns the root project To get all the ancestors of a given project ProjTable::ancestors(projId); ProjTable::ancestors(projId) returns a container of all ancestor of a project
AX – D365FO – Create projects or sub projects using X++
Friends, below code will help you to create projects and sub projects using code. If there is already a parent project and we need to create sub projects based on the format which is already defined, the sample job below is an example. [Please note: Try, test and modify as per your requirements] static void … Continue reading AX – D365FO – Create projects or sub projects using X++