Xrm.Utility (Client API reference)

Applies to Dynamics 365 (online), version 9.0

Provides a container for useful methods.


Method Description
closeProgressIndicator Closes a progress dialog box.
getAllowedStatusTransitions Returns the valid state transitions for the specified entity type and state code.
getEntityMetadata Returns the entity metadata for the specified entity.
getGlobalContext Gets the global context.
getLearningPathAttributeName Returns the name of the DOM attribute expected by the Learning Path (guided help) Content Designer for identifying UI controls in the Dynamics 365 Customer Engagement forms.
getResourceString Returns the localized string for a given key associated with the specified web resource.
invokeProcessAction Invokes an action based on the specified parameters.
lookupObjects Opens a lookup control to select one or more items.
refreshParentGrid Refreshes the parent grid containing the specified record.
showProgressIndicator Displays a progress dialog with the specified message.

Deprecated methods

The following table lists the new methods you should use instead of the deprecated methods in the Xrm.Utility namespace. These methods were deprecated in Dynamics 365 (online), version 9.0.

Deprecated Method New method to be used
alertDialog Xrm.Navigation.openAlertDialog
confirmDialog Xrm.Navigation.openConfirmDialog
getBarcodeValue Xrm.Device.getBarcodeValue
getCurrentPosition Xrm.Device.getCurrentPosition
openEntityForm Xrm.Navigation.openForm
openQuickCreate Xrm.Navigation.openForm
openWebResource Xrm.Navigation.openWebResource

Client API execution context

Client API reference

Deprecated client APIs