With Dynamics 365 for Operations (D365Ops), there is so much change from its immediately previous version. And one such major change is done in How the Source code is saved?
If you have every worked in AX2009, you know that the source code is saved in files in a specific file location in the AOS server. Now with D365Ops, Microsoft has fallen back to the concept of storing the files in filesystem instead of a database (model database in AX2012 used to hold all the code base).
And the developers working with D365Ops, the primary question is where & how the source code is kept & handled.
Where to find the Source code:
The application code for Dynamics 365 for operations is stored in File system, usually in a directory named PackageDirectory. You can find the details on the configuration related to AOS in a web.config file.
Steps to follow:
- Open IIS and go to the Sites\AOSService (in case you missed, AOS is a web service with D365Ops).
- Right click > Explore
- You should be directed to a folder (to J:\AosService\WebRoot if you are using MS demo environments)
- Now search for the web.config file and open it.
- Search for a keyword – “Aos.PackageDirectory” and you should be able to find the value for the Package directory.
- It should be J:\AosService\PackagesLocalDirectory (if you are using MS demo environments)
How is the Source code updated in the File system:
Now if we try to look into how the code is stored in the File system. In the above identified PackageDirectory, you will find that there are individual folders to consist the code changes for each Model.
The simplest way to understand the structure is to create your own model and verify the below:
- Look for the folder relevant to your newly created model (in my case, APM)
- Under path //PackageLocalDirectory/APM/APM– you will observe that there are #78 new folders created for each element type in the AOT. All with a subfolder Delta which is going to store the changes made.
- And under path //PackageLocalDirectory/APM/Descriptor – you will find a config file storing the information about your model.
- And under path //PackageLocalDirectory/APM/XPPMetadata – the metadata information about the AOT objects is stored.
I will write more about few AOT elements and the extensions introduced with D365Ops and we will look more into the structure and changes in the XMLs placed under Delta folder.