简体   繁体   中英

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?

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. The redirect URL is always appended with my CRM organization's URL.

These are anyway unsupported in CRM 2015 as per MSDN .

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. 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. 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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