This article describes the usage of Xrm.Page in client scripts in our addons for Dynamics 365 Online.
There are different ways how Xrm.Page can be used in custom scripts.
As this Microsoft article describes, some ways of using it will be deprecated in future versions of Dynamics 365:
Basically, deprecated means it is still fully supported at the moment. The APIs will be removed in a future release, but this will not happen immediately and not without info:
(…The deprecated client APIs will continue to be available and supported until they are officially removed from a future major release. A public announcement here in the documentation, on the Dynamics 365 blog, and in many other places will be made at least six months before removal…)
And not for all scenarios, a replacement exists yet, so for now it can still be used e.g. parent.Xrm.Page:
(…Although Xrm.Page is deprecated, parent.Xrm.Page will continue to work in case of HTML web resources embedded in forms…)
We are working on new versions of our addon with the goal to remove all usages of Xrm.Page for which an equivalent alternative exists.
Right now, only for form scripts and command scripts replacements are available.
In case of errors
In case of any issue in combination with the new Unified Interface, please make sure to update to latest available version of our addons.
For further questions don´t hesitate to contact firstname.lastname@example.org.