Java
Script for Unified Interface / Unified Client Interface ( UI
/ UCI )
The
following 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. 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 |
|
Forms: ExecutionContext.getFormContext |
Use of the Xrm.Page object as a static access to the
primary form context is still supported to maintain backward compatibility
with the existing scripts. Based on the feedback, we understand that the
usage of Xrm.Page is high, and it won't be removed as soon as some other client API methods
listed in this section. We encourage you to use the new way of getting form
content where possible. More information: Client
API form context |
|
|
Xrm.Utility.getGlobalContext |
Allows access to the global
context without going through the form context. |
|
|
formContext.data.attributes |
The formContext.data.attributes API will make retrieval
of non-entity bound data consistent across entity forms, metadata-driven
dialogs, and task-based flows. The data will be a combination of custom
values sent using the query string and what was specified in the parameters
in the openForm method. |
|
|
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. |
|
|
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 |
||
|
Xrm.Navigation.openAlertDialog |
The new signature is consistent
with other APIs (openForm) and takes a new set of
parameters for flexibility. |
|
|
Xrm.Navigation.openConfirmDialog |
The new signature is consistent
with other APIs (openForm) and takes a new set of
parameters for flexibility. |
|
|
Xrm.Device.getBarcodeValue |
Moving device-related actions
to Xrm.Device |
|
|
Xrm.Device.getCurrentPosition |
Moving device-related actions
to Xrm.Device |
|
|
Xrm.Utility.getEntityMetadata |
The isActivityType
method is synchronous so it was suitable for ribbon rules. However, the
replacement method, getEntityMetadata,
is asynchronous, and is not suitable for ribbon rules. |
|
|
Xrm.Navigation.openForm |
Moving navigation actions to Xrm.Navigation |
|
|
Xrm.Navigation.openForm |
Moving navigation actions to Xrm.Navigation |
|
|
Xrm.Navigation.openWebResource |
Moving navigation actions to Xrm.Navigation |
|
|
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. |
||
|
None |
Silverlight is no longer
supported. These methods won't be available after October,
2020. |
|
|
None |
The ClientGlobalContext.js.aspx page is built on the
legacy web client infrastructure. As the legacy
web client is deprecated and scheduled to be unavailable effective
December 1, 2020, the ClientGlobalContext.js.aspx page will also be removed
along with the legacy web client on December 1, 2020. |
|
No comments:
Post a Comment