Monday, 4 May 2020

Some useful lnfo of D365FO (How to open table browser, Models, Descriptor file)


1. To open the following in browser:
Table Browser
https://-----------.cloudax.dynamics.com/?mi=SysTableBrowser&prt=initial&limitednav=true&TableName=VendReceiptsListJour&cmp=USMF

Action MenuItem
https://---------.cloudax.dynamics.com/?cmp=WLF&mi=action:WHSWorkExecute&limitednav=true

Runnable class
https://--------.cloudax.dynamics.com/?cmp=USMF&mi=SysClassRunner&cls=classname



2. Powershell cmds to Import/Export/delete model in D365FO:
Export
cd K:\AosService\PackagesLocalDirectory\Bin

.\ModelUtil.exe -export -metadatastorepath=K:\AosService\PackagesLocalDirectory -modelname="CustomWithReport" -outputpath=C:\Temp

Import
cd K:\AosService\PackagesLocalDirectory\Bin

.\ModelUtil.exe -import -metadatastorepath=K:\AOSService\PackagesLocalDirectory -file=J:\CustomWithReport.axmodel

Delete
.\ModelUtil.exe -delete -metadatastorepath=K:\AOSService\PackagesLocalDirectory -modelname="CustomWithReport"

else you can delete the model directly by deleting the folder from K:\AosService\PackagesLocalDirectory. Before that stop World wide web service(It will stop AOS), Microsoft Batch service.
After delete restart service, refresh model in visual studio Dynamics 365-> update models-> refresh models and synchronize.

3. To add the model descriptor file to TFS
  1. In Visual Studio, in Team Explorer, open Source Control Explorer, and then right-click on the metadata folder (for example, \Trunk\Main\Metadata).
  2. In the Source Control Explorer toolbar, click Add Item to Folder.
  3. Select your model descriptor file. The model descriptor file is the XML file manifest of your model. It's located in the Descriptor folder of the package that the model belongs to.(K:\AosService\PackagesLocalDirectory\ModelName\Descriptor).