Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

What is AOT in AX & D365FO

 


Define AOT in AX & D365FO



The Application Object Tree (AOT) is a tree view of all the application objects within Microsoft Dynamics AX and D365FO. The AOT contains everything you need to customize the look and functionality of a Microsoft Dynamics AX application.

In the D365FO,  You can find the AOT objects in Application Explorer.

Support Faryal's Cusine


Export & Import Project



Export & Import Project D365FO 



Today, We will talk about the good feature of Visual studio for D365FO & AX-7 is the Export & import Project.

Using this feature we can export all elements which are part of the solution including Module and their sub-model.

Following are a few simple steps.

Export Section

Step-1 Open Visual Studio and create a new project.
Step-2 Add some elements in the project and right-click on the project you will find the export option on the Menu option.

Reference Screenshot




Step-3 Provide the path where you want to save the Export project which will be in the form of *.axpp.

Reference Screenshot




Step-4 Now click on save.. export will take 2 to 3 minutes, exporting time duration vary on a number of the elements. 

Reference Screenshot



Import Section


Step-5 Now login to the instance where you want to import the project.
Step-6 Open Visual studio and Navigate to Dynamics 365 and click on import project.

Reference Screenshot



Step-7 When you click on import project, A popup will appear. provide the path of the project you want to import.

Reference Screenshot


Step-8 once the project is imported, the Visual studio shows the complete elements which are part of the project.

Reference Screenshot



Step-9 Click on the Ok button, Activity will take time because it will create module and sub-model if not exists in your environment and perform compile. You need to perform Database sync manually.

Step-10 Now navigate to the File menu and open the project. (You will find the recently imported project on the default path of Visual studio)


Reference Screenshot



Step-11 Now verify your all elements and check the model if it did not exist before import. In my case module and sub-model were not exists.

Reference Screenshot




Reference Screenshot





















Support Faryal's Cusine


D365FO Database Synchronization


D365FO Database Synchronization


In Microsoft D365FO there are 3 ways to synchronize the database 

Full synchronization
Synchronization after building of packages
DB sync on project build


Full synchronization

To perform a single full database synchronization Open Visual Studio and click on Dynamics 365 Menu and click on the synchronized database...

Like below 

Now click on synchronize
 

Synchronization after build of packages

There is an option available to sync the database with the build model feature, In this option DB with start sync after the building of the model...

Navigation

Go To > Dynamics 365 > Build model 


Now select model/models then click on the 2nd tab and Mark checkbox of the synchronized database.



DB sync on project build

The properties of a project in Solution Explorer, there is property available synchronized database of every build of the project.


Support Faryal's Cusine


Deploy package using LCS


Deploy package using LCS



Using the following steps you can create the deployable package and deploy it through LCS.

Step-1  Open Visual studio and click on Dynamics365 Menu and select create deployment package from the deploy menu item.





Step-2 Select your model and set the output path of the model and click OK.




Step-3 Login to LCS then navigates to your project.
Ste-4 click on the hamburger icon and select Asset library.




Step-5 Now select software deploy-able package and click on the + icon to add your custom package.


Step-6 Enter the package name and description. would be great if you are follow any naming sequence for packages.

Step-7 Click on Add file button to upload your deployable package.




Step-8 Now click on browse and select package then click on uplaod.




Step-9 You can find the package in the tab of software deploy-able tab Once the package is uploaded successfully.

Step-10 Once LCS mark package as valid. then go to your environment.





Step-11 Now click on Maintain and select apply the update.






Step-12 Select your package and click on apply.



Package deployment will start in few seconds. LCS will show you the progress of every step.



Once the package is completed sign Off the package, So it will visible to you on production deployment as well.





Please feel free to contact me if you are facing any issues during the implementation of this blog.


Support Faryal's Cusine


Virtual Fields Vs Computed Fields

  Virtual Field: A virtual field in D365FO is a field that doesn't have a direct representation in the database. It's a field that y...