What is the Issue?
As of February 2017, the SDK extensions for Microsoft Dynamics 365 is deprecated, and won’t be supported in future releases of Dynamics 365, version 9.0 and beyond.
The Reason-
These extensions were added in Dynamics CRM 2013 to provide a simplified connection class, strong type generation for solutions, and web portal capabilities. These have been replaced with newer capabilities.
Solution-
The Xrm client APIs are deprecated in the current release 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.
Following is the comparison for old Xrm Object Model and new one.-
Old Xrm Object model-
This Old Xrm Object Model is replaced with the below one-
The Important change is Xrm.Page.Context is replaced with formContext i.e. executionContext.getFormContext.
Let’s see the example for new Xrm –
For the information about environment we were using Xrm.Page.Context which is now replaced with Xrm.Utility.getGlobalContext.
We have 4 new namespaces for new Client APIs-
1. Xrm.Device
2. Xrm.Encoding
3. Xrm.Navigation
4. Xrm.WebApi
Also for your information below are some of the deprecated Client APIs with their replacements-
Enjoy Ms CRM!!!