Saturday, July 27, 2019

Dynamics 365 for Finance and Operation - Model Management

Open "Windows PowerShell ISE"

Change directory to Bin folder under metadata path for D365 FO (K:\AosService\PackageLocalDirectory\bin)

Export Model:

ModelUtil.exe -export -metadatastorepath=[path of the metadata store] -modelname=[name of the model to export] -outputpath=[path of the folder where the model file should be saved]
.\ModelUtil.exe -export -metadatastorepath=K:\AosService\PackagesLocalDirectory -modelname="MYModelName" -outputpath=C:\Temp


Import Model:

ModelUtil.exe -import -metadatastorepath=[path of the metadata store where model should be imported] -file=[full path of the file to import]
.\ModelUtil.exe -import -metadatastorepath=K:\AosService\PackagesLocalDirectory -file="C:\Temp\MyModelName-Model publisher name.axmodel"


Delete Model:

ModelUtil.exe -delete -metadatastorepath=[path of the metadata store] -modelname=[name of the model to delete]
.\ModelUtil.exe -delete -metadatastorepath=K:\AosService\PackagesLocalDirectory -modelname="MYModelName"

No comments:

Post a Comment