locked
CRM 2013 : Problem in Record navigation. RRS feed

  • Question

  • Hi Experts,

    I have a HTML web Resource  which is opening from contact form command button.

    Inside that HTML page I have put one link and want to navigate to account record but instead of navigating to account it is navigating to the same old contact record even the links are for account. 

    window.open(serverurl + "/main.aspx?etn=account&id=%7b" + accountId+ "%7d&pagetype=entityrecord");

    If I will copy paste this above link to a new tab then the account record is opening.

    Can experts help me to find the reason .

    Thanks in Advance.


    AshisK

    Thursday, October 31, 2013 12:26 PM

Answers

  • Hi ,

    After doing some research i found the solution.For CRM 2011 it is fine with the above method.

    But in 2013 one parameters we need like histkey with some random value.

    along with that i added the following params now it is working fine for me.

    window.open(serverurl + "/main.aspx?etn=account&extraqs=&histKey=237357517&id=%7b" +accountId + "%7d&newWindow=true&pagetype=entityrecord");

    Thanks


    AshisK

    • Marked as answer by Ashis_K Monday, November 4, 2013 7:19 AM
    Monday, November 4, 2013 7:19 AM
  • Did you try Xrm.Utility.openEntityForm() ?

    http://msdn.microsoft.com/en-us/library/gg328483.aspx


    Taichi,Sato

    • Marked as answer by Ashis_K Monday, November 17, 2014 10:56 AM
    Friday, August 8, 2014 2:44 AM

All replies

  • Hi ,

    After doing some research i found the solution.For CRM 2011 it is fine with the above method.

    But in 2013 one parameters we need like histkey with some random value.

    along with that i added the following params now it is working fine for me.

    window.open(serverurl + "/main.aspx?etn=account&extraqs=&histKey=237357517&id=%7b" +accountId + "%7d&newWindow=true&pagetype=entityrecord");

    Thanks


    AshisK

    • Marked as answer by Ashis_K Monday, November 4, 2013 7:19 AM
    Monday, November 4, 2013 7:19 AM
  • Thanks for blog, It is working form.

    but histKey is undocumented, can we use this key?

    Another issue is after open window if save and refresh the form it is navigating to the another form in same window.

    For example: open campaign response from phone call using window. open(), after save and refresh the campaign response it is navigating to the phone call in same window.

    Please let me know if any one have thoughts???

    Friday, July 18, 2014 6:02 AM
  • Did you try Xrm.Utility.openEntityForm() ?

    http://msdn.microsoft.com/en-us/library/gg328483.aspx


    Taichi,Sato

    • Marked as answer by Ashis_K Monday, November 17, 2014 10:56 AM
    Friday, August 8, 2014 2:44 AM