web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Dynamix Academy / Dynamics 365 v9 Deprecated ...

Dynamics 365 v9 Deprecated Client API

Abhishek Dhoriya Profile Picture Abhishek Dhoriya 1,013

Dynamics 365 v9 Deprecated Client API

In this article, we will see yet another change in Dynamics 365 v9 Deprecated Client API.

  • Some of the existing client APIs are deprecated to reorganize the Xrm client API object model to better align with the need of using the same client scripts without having to change them based on the context or the client (web client or the new Unified Interface) where they run.
  • You should plan to use the new client APIs mentioned in the Replacement Client API column instead of the deprecated ones

Dynamics 365 v9 Client APIs are deprecated

You should plan to use the new client APIs mentioned in the Replacement Client API column instead of the deprecated ones. •The deprecated client APIs will continue to be available and supported until they are officially removed from a future major release.

Find Full list of Dynamics 365 v9 Deprecated Client API here: https://docs.microsoft.com/en-us/power-platform/important-changes-coming#some-client-apis-are-deprecated

Deprecated Client API Replacement Client API
Xrm.Page Forms: ExecutionContext.getFormContext
Commands: Send it as the PrimaryControl parameter
Xrm.Page.context Xrm.Utility.getGlobalContext
Xrm.Page.context.getQueryStringParameters formContext.data.attributes
Xrm.Page.context.getTimeZoneOffsetMinutes globalContext.userSettings.getTimeZoneOffsetMinutes
Xrm.Page.context.getUserId globalContext.userSettings.userId
Xrm.Page.context.getUserLcid globalContext.userSetings.languageId
Xrm.Page.context.getUserName globalContext.userSettings.userName
Xrm.Page.context.getUserRoles globalContext.userSettings.securityRoles
Xrm.Page.context.getIsAutoSaveEnabled globalContext.organizationSettings.isAutoSaveEnabled
Xrm.Page.context.getOrgLcid globalContext.organizationSettings.languageId
Xrm.Page.context.getOrgUniqueName globalContext.organizationSettings.uniqueName
Xrm.Page.data.entity.getDataXml No change in the method, but use “typename” instead of type for lookup attributes.
GridRow.getData GridRow.data
GridRowData.getEntity GridRowData.entity
Xrm.Mobile.offline Xrm.WebApi.offline
parent.Xrm
addOnKeyPress Use a custom control
removeOnKeyPress Use a custom control
showAutoComplete Use a custom control and corresponding UI
hideAutoComplete Use a custom control and corresponding UI
Xrm.Utility.alertDialog Xrm.Navigation.openAlertDialog
Xrm.Utility.confirmDialog Xrm.Navigation.openConfirmDialog
Xrm.Utility.isActivityType Xrm.Utility.getEntityMetadata
Xrm.Utility.openEntityForm Xrm.Navigation.openForm
Xrm.Utility.openQuickCreate Xrm.Navigation.openForm
Xrm.Utility.openWebResource Xrm.Navigation.openWebResource

Also find More on Dynamix Academy :

Also find Dynamix Academy on:

The post Dynamics 365 v9 Deprecated Client API appeared first on Dynamix Academy.

Comments

*This post is locked for comments