简体   繁体   English

从CRM 2015表单导航到外部URL

[英]Navigate to an external URL from CRM 2015 form

Do we have a supported way to navigate to an external URL (Payment Gateway, another application) from CRM 2015 form in the same tab/window? 我们是否有受支持的方法可以在同一选项卡/窗口中从CRM 2015表单导航到外部URL(付款网关,另一个应用程序)?

We would also need the script to be compatible with all the browsers and devices. 我们还需要脚本与所有浏览器和设备兼容。 I have also tried my luck using window.location.redirect , window.location.replace , window.location.href , showModalDialog , so on. 我还尝试了使用window.location.redirectwindow.location.replacewindow.location.hrefshowModalDialog等等的运气。 The redirect URL is always appended with my CRM organization's URL. 重定向URL始终附加在我的CRM组织的URL后面。

These are anyway unsupported in CRM 2015 as per MSDN . 按照MSDN ,CRM 2015始终不支持这些功能。

Any help would be much appreciated. 任何帮助将非常感激。

似乎CRM 2015不支持在同一选项卡/窗口中打开外部页面。我不得不使用window.open在单独的选项卡/窗口中打开页面,并且所有浏览器都支持。

You can use the built in form customization to add a navigation link. 您可以使用内置的表单自定义来添加导航链接。 Simply go into the CRM Form customization, click on "Navigation" on the ribbon, and then click on the Insert tab of the Ribbon and Click on Navigation Link. 只需进入CRM表单自定义,在功能区上单击“导航”,然后在功能区的“插入”选项卡上单击,然后单击“导航链接”。 You can then edit the Navigation Link Properties and give it a name, change the icon if you wish, and specify the External URL you wish to navigate to. 然后,您可以编辑“导航链接属性”并为其命名,可以根据需要更改图标,并指定希望导航到的“外部URL”。 Then save and publish the customizations. 然后保存并发布自定义项。 If you wish to use something from the current record to dynamically build a URL to put in this Navigation Link, the solution given on this page should still work in CRM 2015 even though it was originally written for CRM 2011 - http://www.crmanswers.net/2013/03/dynamic-navigation-links-using.html . 如果您希望使用当前记录中的内容来动态构建要放置在此导航链接中的URL,则此页面上给出的解决方案即使最初是为CRM 2011编写的,也应在CRM 2015中使用-http:// www。 crmanswers.net/2013/03/dynamic-navigation-links-using.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM