We will learn to display a progress indicator or loading screen in Dynamics 365 CRM. Before we start, make sure to subscribe to CRM Crate so that you stay up-to-date in field of Dynamics 365.
Why do we need progress indicators or loading screen in Dynamics 365 CRM?
Consider a scenario where we have to perform an asynchronous or time-consuming synchronous operation on Dynamics 365 form where we want our end user to wait until the operation has executed successfully. We can achieve this requirement by displaying a waiting or loading screen during the interval of the operations, this will prevent the user from updating the form in middle of the operation and provide a better user experience.
Below are the Client APIs used for achieving the in-progress indicator in Dynamics 365 CRM forms.
showProgressIndicator (Client API reference)
closeProgressIndicator (Client API reference)Xrm.Utility.closeProgressIndicator()
The closeProgressIndicator (Client API reference) is used to terminate or stop the previously started progress indicator.
Thus we learned to display a progress indicator or loading screen in Dynamics 365 CRM.