Wednesday, 18 February 2015

AX2012 AXUTIL commands to Import,Export,Delete Models

Hello All...

Here i'm sharing Axutil command to import, export, delete models.

// creating the Model in the Layer
AxUtil create /model:"TestModel" /Layer:CUS

// exporting the model to file
AxUtil export /model:"TestModel" /file:TestModel.axmodel

// importing the model from file
AxUtil import /file:TestModel.axmodel

// delete the model
AxUtil delete /model:"TestModel"

//delete the layer
AxUtil delete /layer:ISV

// if you have multiple instances running
//delete the layer from the database and AXserver.
Axutil delete /layer:ISV /db:<database> /s:<server>

how to import  a model by using axutil Ax 2012

Use of Axutil :

-> We use Axutil to import, export,delete Ax Models.


How to Use :

-> open command prompt as a administrator 
-> Paste below code and press enter 
       cd Program Files\Microsoft Dynamics AX\60\ManagementUtilities

-> specify the model file location path in the command prompt  and press enter

Example :  

 axutil import /file:"c:\Program Files (x86)\Microsoft\Security Development Tool\SecurityDevelopmentTool.axmodel" 

->After that start AOS and do full application compilation and db synchronization.

Note :

-> When you are importing model by default this model will import into "MicrosoftDynamicsAx_Model"

-> If you have a specific database then use the below format to specify database

axutil import /file:"c:\Program Files (x86)\Microsoft\Security Development Tool\SecurityDevelopmentTool.axmodel" /db:"MicrosoftDynamicsAX_159_model"

-> Use these commands to specify specific database, server     db:<database> /s:<server>

No comments:

Post a Comment