Posts

Showing posts from March, 2021

DYNAMICS 365 HOW TO DEBUG PLUGINS USING REMOTE DEBUGGER

Image
In another post , we saw how to debug a plugin using Profiler and highlighted a downside of this method which will not give you a real-time state of the Dynamics 365 database you are working on. However, in this post, I will show you how to debug a plugin in real-time of the execution of the plugin itself using the Visual Studio remote debugger tool . This method will only work for On-premises environments since you should install and run the tool on the CRM server. The below steps will teach you how to debug the plugins First things first, you have to download the remote debugger tool using this link based on the Visual Studio version you are working with Once the download is done, copy the installer on the CRM server and double click to install it ...

DYNAMICS 365 DISPLAY LOADING PROGRESS INDICATOR ON FORM

Image
Most probably, you have faced a scenario where you need to block the user from interacting with the form and you want him to wait a little bit until a process is completed and then he can work again on the form. However, blocking the user from working without informing him that something in the background is being processed is not a pretty thing to do. Therefore, and to avoid this misunderstanding, you can display a loading dialog to inform him of this behavior, so he knows that he should wait a little bit before resuming the work on the form. To achieve this, there is a straight forward method to do it, which is by using the Xrm.Utility.showProgressIndicator("Processing... Please wait!!!") method in the JavaScript. You can add this line of code in any function, where you want to block the user from interacting with the interface while you are waiting for a process to be completed. Once the pro...