Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Prevent record from opening in parent record

Posted on by Microsoft Employee

Hello, 

In CRM 2016 when user clicks on any record in HomeGrid or Subgrid, the record opens in same window as parent record. 

Is there any way to prevent this for particular entity and make it open in new window by default?

Kindly share your views.

*This post is locked for comments

  • Verified answer
    Tim Dutcher Profile Picture
    Tim Dutcher 2,100 on at
    RE: Prevent record from opening in parent record

    I don't know of a way to override that behavior. As an alternative, users can right-click and select the "Open in new window" option.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Prevent record from opening in parent record

    Rutul,

    Thanks for your suggestions.

    I am aware of that but i want to check if there is any workaround with out javascript on load of the form.

    Regards

    Prasad

  • Suggested answer
    Rutul Chauhan Profile Picture
    Rutul Chauhan 2 on at
    RE: Prevent record from opening in parent record

    Hi,

    In Dynamics CRM records will open with in same window but you can you arrow icon at top right after opening the record to open this in new window.

    On way to achieve this is right click on record and click on open in new tab

    You can do it by default using JavaScript

    please look into this code. You can open any record into new windows.

      function openEntityRecord(enityLogicalName, guid, baseUrl) {

               var randomnumber = 100000000 + Math.floor(Math.random() * 900000000);

               if (!endsWith(baseUrl, '/'))

                   baseUrl += "/";

               var url = baseUrl + "main.aspx?etn=" + enityLogicalName + "&extraqs=&histKey=" + randomnumber + "&id={" + guid + "}&newWindow=true&pagetype=entityrecord";

               window.open(url, "", "status=0,resizable=1,width=1000px,height=800px");

           }

    Also look below link if above not work...

    mscrmmindfire.wordpress.com/.../crm-2013-open-entity-form-in-new-window-by-javascript

    Regards,

    Rutul

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