Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

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

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
  • Faran Saleem Profile Picture
    Faran Saleem 295 on at
    RE: Window.Open function in JS opening a new IE window outside USD instead of firing event inside USD

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

  • Faran Saleem Profile Picture
    Faran Saleem 295 on at
    RE: Window.Open function in JS opening a new IE window outside USD instead of firing event inside USD

    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
    Faran Saleem 295 on at
    RE: Window.Open function in JS opening a new IE window outside USD instead of firing event inside USD

    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?

  • Suggested answer
    Pankaj Gogoi Profile Picture
    Pankaj Gogoi 3,177 on at
    RE: Window.Open function in JS opening a new IE window outside USD instead of firing event inside USD

    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

  • Suggested answer
    RE: Window.Open function in JS opening a new IE window outside USD instead of firing event inside USD

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans