Commands to Export and Import Model in Dynamics ax 2012

Hello guys,the following commands will help you to import and export model in ax 2012.

Export Model:
----------------------
On the Start menu, point to All Programs, point to Administrative Tools, and then click Microsoft Dynamics AX Management Shell.

At the Windows PowerShell command prompt, PS C:\>, type one of the following commands, and then press ENTER.

Export-AXModel  -Model <name> -File <Filename.axmodel>

Example:Export-AXModel  -Model TestModel -File D:\\models\testmodel.axmodel

Here,TestModel is model name.

Import Model;
--------------------------

Install-AXModel -File <Filename.axmodel> -Details
or
Install-AXModel -File <Filename.axmodel> -Details -Conflict Push

Example:C:>Install-AXModel -File   D:\\models\testmodel.axmodel  -Details

Command to get list of models installed:
-----------------------------------------------------
axutil  list

Example:C:>axutil list 

Command to edit any property of model:
-----------------------------------------------------------
axutil  edit /model:<model name>   /manifest:propertyName=Value

For example,changing the model version number.
C:>axutil  edit /model:testmodel  /manifest:Version=1.66.999.00.1

Command to know proerpties of model:
---------------------------------------------------
axutil manifest /model<model name>  

Example:C:>axutil  manifest  /model:TestModel

Command to create xml version of a model manifest:
-------------------------------------------------------------------------
axutil  manifest  /model:<model name>   /xml

Example:C:>axutil  manifest  /model:TestModel  /xml

Thanks.



Comments

Popular posts from this blog

x++ code to add hyperlink to a field in D365FO

x++ code to get Vendor Email Address based on Purpose in Dynamics 365 for Operations

x++ code to get Customer Address based on purpose in ax 2012