web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Internet Explorer Opening Same Page for Different URLs

(0) ShareShare
ReportReport
Posted on by

I am opening pop-up windows of PhoneCall entity using

window.open(url)

in javascript on IE(8, 10, 11). The screen-pop is being initiated from the Contact entity form on a particular event.

Problem here is that when screen-pop takes place the Contact entity page opens in that new window, same as the page from where the screen-pop up is being initiated, so basically I have screen-popped phonecall entity form from the contact entity page, but the same contact entity page is opened in the newly popped window.

If I copy the URL of newly popped window and close all previous windows and open that copies URL in a new window, than the same URL opens the expected Phone Call entity form pop-up.

(Note:

Following is the URL of Contact Entity Form(from pop-up is initiated)

http://1.2.3.4:5555/abc/main.aspx#48111914

Following is the URL of Phone Call Entity, which is opening same page is the above URL i.e. the Contact Entity page:

http://1.2.3.4:555/abc/main.aspx?etn=phonecall&pagetype=entityrecord&extraqs=callf%3D%20UC%20Test%20AB%26callt%3DEF%20Test%26calld%3Doutbouind%26calla%3D9727001190%26usitomer_guid%3D%7B42XXXXBE-61XB-XX11-XXBE-0XXXXD64EE01%7D%26en%3Dcon#723418264

Following is the JavaScript code of the method doing pop-ups:

function handlePhonecallScreenpop(callF, callT, callA, custid, entityN) {

    var extraqs = "cf=" + callF;
    extraqs += "&ct=" + callT;
    extraqs += "&cd=outd";
    extraqs += "&ca=" + callA;
    extraqs += "&cid=" + custid;
    extraqs += "&en=" + entityN;

    var url = webUrl() + "/main.aspx?etn=phonecall&pagetype=entityrecord&extraqs=" + encodeURIComponent(extraqs);
    window.open(url);
}
 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Royal King Profile Picture
    27,686 on at

    Try with below code it works in all browsers.See highlighted parameter in the url that forces system to open record in new window in case of internet explorer.

    var url = Xrm.Page.context.getClientUrl() + "/main.aspx?etn=" + entityName + "&pagetype=entityrecord&newWindow=true&id=%7b" + recordId + "%7d";

               window.open(url, "", "resizable=1;height=800;width=800");

  • Community Member Profile Picture
    on at

    Thank you Chitra, let me try this.

  • Community Member Profile Picture
    on at

    Dear Chitra

    I have tried this but still the issue is same.

  • Community Member Profile Picture
    on at
  • Royal King Profile Picture
    27,686 on at

    Make sure you have the window size mentioned in the open window function. The trick here is when you have main window opened in maximum size  then window.open with less window size will be forced to open in new window.

  • Verified answer
    Community Member Profile Picture
    on at

    Thank you, I have tried all these possible solutions but I was unable to force IE to open the URL with new ID at the end of CRM URL i.e after #. Instead I have to open the pop-up using host name of CRM, which is now considered a new website so a new page is opened.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans