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 :
- http://www.dynamixacademy.com/dynamics-365-tls-1-2-microsoft-dynamics-365-v9-new-features/
- http://www.dynamixacademy.com/microsoft-dynamics-365-online-admin-api/
- How to Debug Asynchronous Workflow in Dynamics 365
- Impersonation In Microsoft Dynamics 365/CRM Plugins
- Microsoft Dynamics CRM/365 Interview Question and Answers
Also find Dynamix Academy on:
- YouTube : https://www.youtube.com/dynamixacademy?Sub_confirmation=1
- Facebook : https://www.facebook.com/groups/1978288099132880
- Twitter: https://twitter.com/AcademyDynamix
- WhatsApp: https://chat.whatsapp.com/Blw14zGHhOECKlI8y2h4Xt
The post Dynamics 365 v9 Deprecated Client API appeared first on Dynamix Academy.

Like
Report
*This post is locked for comments