Dynamics 356 v9-在HTML Web资源中使用executeContext.getFormContext() [英] Dynamics 356 v9 - use executionContext.getFormContext() with HTML web resource
问题描述
任何想法如何将 executionContext.getFormContext()
与HTML Web资源一起使用?似乎可行的唯一方法是 parent.Xrm.Page
,现在已弃用。
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.
推荐答案
自替换以来,我们仍在使用 parent.Xrm.Page
和 parent.Xrm.Utility
是尚未宣布。
We are still using parent.Xrm.Page
and parent.Xrm.Utility
, since the replacement is not yet announced.
您应该计划使用替换客户端API 列,而不是已弃用的列。在从Dynamics 365的未来主要版本中正式删除之前,不推荐使用的客户端API将继续可用并受到支持。
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.
不推荐使用的客户端API :
parent.Xrm
替换客户端API :
NA
Replacement Client API:
NA
>评论:
更早:HTML网络资源可能会与 Xrm.Page 或 Xrm.Utility 交互通过使用parent.Xrm.Page或parent.Xrm.Utility。
现在:表单中的strong>对象:parent.Xrm。*将在加载HTML Web资源时起作用在表单容器中。对于其他地方,例如将HTML Web资源作为SiteMap的一部分加载,parent.Xrm。*将不起作用。
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.
更新:
最新的MS文档说:
尽管
Xrm.Page
已过时,parent.Xrm.Page
将继续在表单中嵌入HTML Web资源的情况下工作,因为这是唯一的方法从HTML Web资源访问表单上下文的方法。
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.
这篇关于Dynamics 356 v9-在HTML Web资源中使用executeContext.getFormContext()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!