我尝试Xrm.Page.data对象访问。我尝试访问XRM情况下,我发现,这是不确定的,或者Xrm.Page为空。网络资源的代码如下:无法从HTML网页资源中从一个HTML网页资源中访问Xrm.Page.context在CRM
function GetClientUrl() {
if (typeof window.parent.Xrm.Page.context == "object") {
clientUrl = window.parent.Xrm.Page.context.getClientUrl();
}
var ServicePath = "/XRMServices/2011/Organization.svc/web";
return clientUrl + ServicePath;
}
它只是当它被嵌入到HTML网络资源中时。任何人都可以解释我做错了什么? 谢谢。