Working with Models in Dynamics 365 for Operations (AX7)

By Becky Newell | December 14, 2016

In Dynamics 365 for Operations (AX7) there is a new tool to use to export, import, replace or delete models called modelutil.exe. It is the replacement for Dynamics AX 2012’s axutil.exe. Modelutil.exe is located in the bin directory of your packages folder. For example, on the VM provided by Microsoft the location of the bin directory is “c:\AOSService\PackagesLocalDirectory\bin”. If you open modelutil via a command prompt you can see the different commands it contains by running this command “modelutil.exe /?”.

Here are a couple examples of how to use it:

To delete a model in modelutil use the following command:

Modelutil.exe -delete -metdatastorepath="path to metadatastore"  -modelname="model name"
For example to delete a model named SSI:
Modelutil.exe -delete -metadatastorepath="c:\AOSService\PackagesLocalDirectory" -modelname="SSI"

To export a model use this command:

Modelutil.exe -export -metadatastorepath="path to metadatastore" -modelname="model name" -outputpath="path to the folder where the model should be saved"
For example to export a model named SSI:
Modelutil.exe -export -metadatastorepath="c:\AOSService\PackagesLocalDirectory" -modelname="SSI" -outputpath="c:\TestDirectory"
The file saved into the TestDirectory will be named SSI.axmodel

Want to know more?

Learn more about the essentials of development in Microsoft Dynamics 365 for Operations with our training courses.


Under the terms of this license, you are authorized to share and redistribute the content across various mediums, subject to adherence to the specified conditions: you must provide proper attribution to Stoneridge as the original creator in a manner that does not imply their endorsement of your use, the material is to be utilized solely for non-commercial purposes, and alterations, modifications, or derivative works based on the original material are strictly prohibited.

Responsibility rests with the licensee to ensure that their use of the material does not violate any other rights.

Start the Conversation

It’s our mission to help clients win. We’d love to talk to you about the right business solutions to help you achieve your goals.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!