Monday, August 10, 2020

how to setup models in d365


  1. Put your .axmodel in temp folder
  2. Run the command prompt as administrator
  3. go to the Aosservice folder path:
  4. K:\AosService\PackagesLocalDirectory\Bin
  5. run the below exe file
  6. K:\AosService\PackagesLocalDirectory\Bin\modelutil.exe
  7. run the below command line to setup the model
  8. K:\AosService\PackagesLocalDirectory\Bin>modelutil.exe -import  
  9. -metadatastorepath=K:\AosService\PackagesLocalDirectory -file=C:\Temp\ModelName.axmodel
  10. Make a full build and DB sync
  11. if dynacrane (specific) modules are not appear in client side application then you need to install license through command prompt
  12. https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/dev-tools/isv-licensing
  13. k:\AOSService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe --setupmode importlicensefile --metadatadir k:\AOSService\PackagesLocalDirectory --bindir k:\AOSService\PackagesLocalDirectory --sqlserver . --sqldatabase axdb --sqluser axdbadmin --sqlpwd e!Ch9U1*h*1=Nk --licensefilename "C:\JSR\BIS license\Business Integration Solution license for toincrease.onMicrosoft.com (toincrease.onMicrosoft.com).txt"

Import / Replace existing / Export models
Command prompt: Modelutil.exe path(i:\AosService\PackagesLocalDirectory\bin)

Export model---> modelutil.exe -export -metadatastorepath="K:\AosService\PackagesLocalDirectory" -modelname="DynaRentTransportation" -outputpath="C:\Users\Admina39abe02fd\Desktop\JSr\DynarentModelBkp_before_10.0.4.6"

Import model----> modelutil.exe -replace -metadatastorepath="K:\AosService\PackagesLocalDirectory" -file="C:\Temp\DynaRentModel\Dynarent_10046_25072019_Models\DynaRent-To-Increase B.V..axmodel"




1 comment:

Finacial dimensions using ledger dimension / main account

Select * from objMainAccount  inner join                from objDimensionAttributeValueCombination                  where objDimensionAttrib...