IMPORT A MODEL IN D365
1)
Copy model files with .axmodel in any folder
preferably in c: \Temp
Install a model in a development environment
To install a model file in a development environment, use the ModelUtil.exe tool and the -import directive.
ModelUtil.exe -import -metadatastorepath=[path of the metadata store where model should be imported] -file=[full path of the file to import]
If the model already exists in your development environment, you must first delete it by using the -delete directive.
ModelUtil.exe -delete -metadatastorepath=[path of the metadata store] -modelname=[name of the model to delete]
Sample Example : Model name is Vikas
ModelUtil.exe -import -metadatastorepath=K:\AOSService\PackagesLocalDirectory -modelname="Vikas" -file=c:\temp\Vikas.axmodel
Note : in this case the path is K:\AOSService\PackagesLocalDirectory
and the model name is : Vikas
and the path from which it will import the model file is "c:\temp\Vikas.axmodel".
So you will have to first save the model file @c:\temp\ folder....you can keep any other folder too as per your wish :)
If the model is imported successfully you can see a folder named Vikas at the below path K:\AOSService\PackagesLocalDirectory .
After the model is imported do a full build with Synchronization.
After that check for below in menus
Dynamics 365>Addins > Create project from conflicts select the model.
click ok .
In case of any issues then fix the points.
Thanks,
Vikas Mehta.
No comments:
Post a Comment