Open Progress Indicator using Xrm.Utility in Dynamics 365 v9.0

By | January 19, 2018

Introduction:

A few months back Microsoft has announced the release of Dynamics 365 v9.0 and has come up with many cool features.

Where some of them are related to functionality while others are related to UI.

Well! The list of newly added features is quite long though not exhaustive.

Open Progress indicator using Xrm.Utility in Dynamics 365 v9.0

The one of interesting addition that we saw and which could be a boon for developers is Progress Indicator functionality. With this functionality, user can display the Progress dialog/Indicator using “showProgressIndicator” function of XRM.Utility namespace.

To achieve this previously, we need to create a web resource which contains the custom logic to display the Progress Indicator/dialog in the CRM, and then use this web resource in order to show the Progress Indicator.

Now with the release of Dynamics 365 v9.0, we can display the Progress Indicator/dialog by using out of the box “showProgressIndicator” function of XRM.Utility namespace, the syntax of the function is as given below.

Xrm.Utility.showProgressIndicator(message);

Where,

message: Is a required argument of type string, message contains the string value which is displayed while showing the Progress Indicator.

Example: Xrm.Utility.showProgressIndicator(“Processing Record”);

We used this function in our JavaScript and the working of this function is cool as seen in the below screenshot.

Open Progress Indicator using Xrm.Utility in Dynamics 365 v9.0

Note: In order to closed the above Progress Indicator we would need to call Xrm.Utility.closeProgressIndicator() of Xrm.Utility namespace.

closeProgressIndicator() function don’t have any input argument, and if there is any Progress Indicator is displayed using showProgressIndicator(arg) function, then closeProgressIndicator() closes the progress indicator otherwise closeProgressIndicator() do nothing.

So whenever a user needs to close the Progress Indicator user can use closeProgressIndicator() function.

Conclusion:

Now user can display the Progress Indicator by using out of the box function “showProgressIndicator(arg)” in Dynamics 365 v9.0.

Export Dynamics CRM Reports

Leave a Reply