Xrm

This object has multiple internal objects for working with different components. The following are the high-level objects that come under this object:

  • Xrm.Device: This object has a method that is used to work with mobile devices.
  • Xrm.Encoding: This object provides a method for encoding and decoding string text.
  • Xrm.Navigation: This object includes a method for working with navigation; for example, opening URLs, files, and prompts.
  • Xrm.Panel: This object includes a method that's used to display a web page in the side pane of Dynamics 365 CE.
  • Xrm.Utility: This object contains many utility methods. For example, one of the methods that's available under this object is used for displaying a progress indicator. In the past, we used to write unsupported code for this, but now, we have supported methods available. We can show a progress indicator as follows:
Xrm.Utility.showProgressIndicator("Fetching entity records....");

This will be displayed to the user as follows:

When we want to close the progress indicator, we can use the following method:

Xrm.Utility.closeProgressIndicator()
  • Xrm.WebApi: This object contains a method for working with the Web API. We can use methods to work with entity records. These methods support both the online and offline modes of Dynamics 365 CE. We will discuss the methods that are available in Xrm.WebApi in a later section.

Now that we understand the client-side API object model, let's look at the events that are exposed to entity forms and the fields in which we can associate our client-side script.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset