Dynamics 356 v9 - use executionContext.getFormContext() with HTML web resource

旧街凉风 提交于 2019-12-10 16:37:43

问题


Any ideas how we can we use executionContext.getFormContext() with an HTML web resource? only method that seems to work is parent.Xrm.Page which is now deprecated.


回答1:


We are still using parent.Xrm.Page and parent.Xrm.Utility, since the replacement is not yet announced.

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 of Dynamics 365.

Deprecated Client API:
parent.Xrm

Replacement Client API:
NA

Comments:
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.
Now: parent.Xrm.* will work if the HTML web resource is loaded in a form container. For other places, such as loading an HTML web resource as part of the SiteMap, parent.Xrm.* won’t work.

Update:

Latest MS documentation says:

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.



来源:https://stackoverflow.com/questions/49696172/dynamics-356-v9-use-executioncontext-getformcontext-with-html-web-resource

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!