Thursday, November 6, 2014

Export and Import model files

A model is a set of elements in a given layer. 
Each layer consists of one system-generated model that is specific to that layer but we can also create  new models on a specific layer like USR or VAR.
Exporting a model file is very useful if you need to migrate all your customization from one environment to another environment. 

Export Model File:


Go to Administrative Tools>Microsoft Dynamics AX 2012 Management Shell
type the following command 

Export-axmodel -Model "ModelName " -File "path"

Ex: export-axmodel  -model  "usr model " -file "d:axmodel\usr_model" 

Import Model File:

install-axmodel -File"path" -details

Ex:  install-axmodel -file"d:axmodel\usr_model" -details 

Uninstall/Remove Model File:

uninstall-axmodel  -Model "ModelName"

Ex: uninstall-axmodel -model  "USR Model"

No comments:

Post a Comment

Enable/Disable form control based on multiple rows select

 class PurchTableFormEventHandler {      [FormDataSourceEventHandler(formDataSourceStr(PurchTable, PurchTable), FormDataSourceEventType::Act...