Deprecated method Xrm.Utility namespace in Dynamics 365
Views (2014)
Before release of Dynamics 365 V9.0 online Xrm.Utility used as a container of some useful function which are not directly related page but used to open different entity forms , dialogue ,alert ,web resources etc. . In release of Dynamics 365 V9.0 Microsoft has been deprecated all the useful method from namespace Xrm.Utility .
So now what to use to reuse those functionality , Here is the deprecated list of method and replacement of them.
| Deprecated Method | New method to be used |
| Xrm.Utility.alertDialog | Xrm.Navigation.openAlertDialog |
| Xrm.Utility.confirmDialog | Xrm.Navigation.openConfirmDialog |
| Xrm.Utility.getBarcodeValue | Xrm.Device.getBarcodeValue |
| Xrm.Utility.getCurrentPosition | Xrm.Device.getCurrentPosition |
| Xrm.Utility.openEntityForm | Xrm.Navigation.openForm |
| Xrm.Utility.openQuickCreate | Xrm.Navigation.openForm |
| Xrm.Utility.openWebResource | Xrm.Navigation.openWebResource |
You can still use Xrm.Utility namespace in on-premise (V8.2), as Microsoft yet to release V9.0 for on-premise.
Hope this helps :).

Like
Report
*This post is locked for comments