在CRM外部托管的HTML页面上显示Dynamics CRM 2015开箱即用视图 [英] Showing Dynamics CRM 2015 out of box views on HTML pages hosted outside the CRM

查看:131
本文介绍了在CRM外部托管的HTML页面上显示Dynamics CRM 2015开箱即用视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个门户网站,我们可以在其中访问crm中的记录。此门户将作为Web应用程序托管在CRM之外,而不是作为crm中的Web资源托管。

I am trying to create a portal where we can access the records in crm. This portal will be hosted outside the CRM as a web application and not as a web resource in crm.

在其中一个页面中,我希望显示开箱即用的内容crm观点。所以我使用了一个带有iframe的html页面.i指定iframe到crm视图的来源是我的iframe代码

In one of the pages i like to show the out of the box crm view. So i used a html page with an iframe in it .i specified the source of the iframe to crm view below is my iframe code

现在,当我通过我的网络应用程序直接打开这个html页面iframe我收到以下错误

Now when i open this html page directly via my web application the iframe i am getting the below error

此内容无法显示在一个框架中

"This content can’t be shown in a frame

这里应该有一些内容,但发布者不允许它显示在一个框架中。这是为了帮助保护您可以在此网站上输入的任何信息。

There is supposed to be some content here, but the publisher doesn’t allow it to be displayed in a frame. This is to help protect the security of any information you might enter into this site.

试试这个

在新窗口中打开

但如果我使用相同的html页面在crm中创建一个web资源,我可以看到没有问题的视图。

But if i create a web resource in crm with the same html page i can see the view with no issues.

如果我直接在浏览器中粘贴以下网址,我也可以看到视图

If i paste the below url directly in the browser i can also see the view

http:// xrmdroid:5555 / XRMfinsight s / main.aspx?etn = opportunity& pagetype = entitylist& viewid = {00000000-0000-0000-00AA-000010003001}& viewtype = 1039& navbar = off& cmdbar = false

http://xrmdroid:5555/XRMfinsights/main.aspx?etn=opportunity&pagetype=entitylist&viewid={00000000-0000-0000-00AA-000010003001}&viewtype=1039&navbar=off&cmdbar=false

但是我无法在应用程序的html页面中的iframe中使用它。是否可以在crm外部托管的应用程序中使用url可寻址表单和视图?

But i am unable to use this in an iframe in a html page in an application .Is it possible to use url addressable form and views in application hosted outside crm ?

提前致谢

ravi sagi

ravi sagi

推荐答案

不,我不认为这将有效。

看起来微软已将其内容设置为不在iframe中显示给初学者。我想你有可能找到解决这个问题的方法。

Looks like Microsoft have setup their content to not display in an iframe for starters. I suppose there is a chance you may be able to find a way to work around this.

我找不到任何关于你的确切情况的正式信息,但这些MSDN报价似乎有点相关:

I cant find anything official on this for your exact situation, but these MSDN quotes seem somewhat relevant:

使用网址打开表单,视图,对话框和报告


在应用程序之外,页面无法访问
Xrm.Utility.openEntityForm函数,使用window.open或链接为实体打开
a特定记录或表单。整个应用程序将为任何更新的实体开放

Outside the application, where pages do not have access to the Xrm.Utility.openEntityForm function, use window.open or a link to open a specific record or form for an entity. The entire application will open for any of the Updated entities.

在嵌入另一个实体的IFrame中显示实体表单
表格不受支持。

Displaying an entity form within an IFrame embedded in another entity form is not supported.

同样值得注意的是,如果你这样做,用户将需要CRM登录 - 这可能是一个问题取决于您尝试构建的门户网站类型。

Its also worth bearing in mind that if you do get this to work the users will require CRM logins - which could be an issue depending on the sort of portal you are trying to build.

这篇关于在CRM外部托管的HTML页面上显示Dynamics CRM 2015开箱即用视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆