How To: Import & Export a Model In Dynamics AX 2012 Using Windows PowerShell Commands in Ax 2012

Exporting an .axmodel File (Windows PowerShell)

Procedure: 

  1. Click On the Start menu -->point to All Programs
  2. Point to Administrative Tools, & then click Microsoft Dynamics AX Management Shell.
  3.  A Command Prompt will Appear After clicking Management Shell 
  4. At the Windows PowerShell command prompt PS C:\>,
  5. Type the following command, and then press ENTER.


    Export Command Syntax :
    PS C:\>Export-AXModel –Model<name>-File <Filename.axmodel>
    Example : Here In This Example My Model Name is: TestModel
    PS C:\> Export-AXModel –Model'TestModel'-File C:\TestModel.axmodel

Importing an .axmodel File (WindowsPowerShell)

Procedure:
  1. Click On the Start menu -->point to All Programs
  2. Point to Administrative Tools, & then click Microsoft Dynamics AX Management Shell.
  3.  A Command Prompt will Appear After clicking Management Shell 
  4. At the Windows PowerShell command prompt PS C:\>,
  5. Type the following command, and then press ENTER.


    Import Command Syntax : PS C:\>Install-AXModel -File <Filename.axmodel> -Details 
    Example: Here In This Example My Model Name is: TestModel 
    PS C:\>Install-AXModel -File C:\TestModel.axmodel -Details
Hope It is Useful.
Proud To Be a DAX Developer  :-)

No comments:

Post a Comment