👉New Client APIs VS Deprecated Client APIs
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.
|
|
|
Deprecated Client API |
Replacement Client API |
Comments |
Although Xrm.Page is
deprecated, parent.Xrm.Page will continue to work in case of
HTML web resources embedded in forms as this is the only way to access the
form context from the HTML web resource. |
||
Allows access to the global context
without going through the form context. |
||
formContext.data.attributes |
||
globalContext.userSettings.getTimeZoneOffsetMinutes |
Moved to globalContext.userSettings |
|
globalContext.userSettings.userId |
Moved to globalContext.userSettings |
|
globalContext.userSettings.languageId |
Moved to globalContext.userSettings |
|
globalContext.userSettings.userName |
Moved to globalContext.userSettings |
|
globalContext.userSettings.securityRoles |
Moved to globalContext.userSettings |
|
globalContext.organizationSettings.isAutoSaveEnabled |
Moved to globalContext.organizationSettings |
|
globalContext.organizationSettings.languageId |
Moved to
globalContext.organizationSettings |
|
globalContext.organizationSettings.uniqueName |
Moved to
globalContext.organizationSettings |
|
No change in the method, but use
"typename" instead of type for lookup attributes. |
|
|
GridRow.data |
GridRow is essentially a form
context. This change unifies the interface of GridRow with formContext. |
|
GridRowData.entity |
GridRowData is form data. This
change unifies the interface of GridRowData with formContextData. |
|
Moved the offline-related methods
under Xrm.WebApi.offline |
||
Use one of the following: |
Earlier: An HTML web resource may interact
with the Xrm.Page or Xrm.Utility objects
within the form by using parent.Xrm.Page or parent.Xrm.Utility. |
|
|
|
|
a) Use a custom control created using Power Apps
component framework instead of HTML web resources. |
Now: parent.Xrm.* will work if the
HTML web resource is loaded in a form container. It won't work for HTML web
resources that are stand alone, or referenced from the site map or any other
places. |
|
|
|
|
b) On forms, use the getContentWindow method
of the web resource control. |
NOTE: parent.Xrm will be removed after the
removal of the ClientGlobalContext.js.aspx page; dates yet to be
announced. |
|
|
|
|
|
||
Use a custom control created using Power Apps
component framework |
|
|
Use a custom control created using Power Apps
component framework |
|
|
Use a custom control created using Power Apps
component framework |
|
|
Use a custom control created using Power Apps
component framework |
|
|
Use a custom control created using Power Apps
component framework |
|
|
The new signature is consistent
with other APIs (openForm) and takes a new set of parameters for flexibility. |
||
The new signature is consistent
with other APIs (openForm) and takes a new set of parameters for flexibility. |
||
Moving device-related actions to
Xrm.Device |
||
Moving device-related actions to
Xrm.Device |
||
Moving navigation actions to
Xrm.Navigation |
||
Moving navigation actions to
Xrm.Navigation |
||
Moving navigation actions to
Xrm.Navigation |
||
Note: This API returns VOID in Unified
Interface. |
||
The replacement method lets you
access the display name along with the ID of transaction currency. |
||
The replacement method lets you
access the display name along with the ID of the security roles. |
||
The replacement method lets you
access the display name along with the ID of transaction currency. |
||
getData and setData for
Silverlight web resources |
None |
Silverlight is no longer supported.
These methods won't be available after October 2020. |
|
||
None |
The ClientGlobalContext.js.aspx
page is deprecated and scheduled to be unavailable after October 1, 2021.
Alternative methods to access global context information will be available
before April 1, 2021. |
|
|
No comments:
Post a Comment