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 :
Customer experience | Sales, Customer Insights,...
Answered

Window.Open function in JS opening a new IE window outside USD instead of firing event inside USD

(0) ShareShare
ReportReport
Posted on by 295

Dear All,

I am trying to use window.open to fire an event inside USD using JavaScript as below,

if(window.IsUSD==true)
{
window.open("event/

}


But it opens, a new IE window outside USD with my URL that I am passing inside window.open and it does not fire any event inside USD.

In different PCs it is working fine, the issue is appearing in only one PC. No event or action is getting trigerred using Window.Open from Javascript inside USD.


I have never faced this strange issue before. What could be the possible root cause and how can it be fixed?

I am using USD 4.1 and CRM v8.2
I have the same question (0)
  • Suggested answer
    Luis Nogueira Profile Picture
    on at

    Hi Saleem,

    Can you please confirm on the affected machine if the Protected Mode for Intranet is enabled  or the dynamics URL's are added to the Trusted Sites zone ?

    More info :  docs.microsoft.com/.../ie-process-mode-gives-httpevent-popup

  • Suggested answer
    Pankaj Gogoi Profile Picture
    3,177 on at

    I would suggest you use the Xrm.Navigation methods

    https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-navigation

    Also, please see if you have a global session for the entity in USD.

    Hope this helps

    Best Regards

    PG

  • Faran Saleem Profile Picture
    295 on at

    Hi Pankaj,

    Thanks for your reply.

    I do not get, are you suggesting to use Xrm.Navigation instead of window.open? Can you give me an example of how can I use it inside USD? (Please note that I am using CRM v8.2)

    I do not understand your second point also. Can you please elaborate?

  • Faran Saleem Profile Picture
    295 on at

    Hi Luis,

    Thanks for the reply.

    I see that for intranet Protected mode is not enabled, however for internet it is.

    Also, by dynamic URLs you means the URLs I am passing in window.open? If yes, then no they are not included.

    Should I follow both these steps or should only either one of above option would do the job for me?

    Can you please suggest.

  • Faran Saleem Profile Picture
    295 on at

    Thank you Luis. Enabling the protected mode did solve my problem.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans