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.
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.
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
-----------------------------------------------------
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
---------------------------------------------------
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
Post a Comment