Wednesday, May 14, 2014

Open an entity record in a new window in MS CRM 2013 by Javascript

In CRM 2013 opening an entity record differs from previous versions. While CRM 2011 was all about popup windows CRM 2013 has a flat HTML5 navigation style. But you can still open a record in a popup window.
To open an entity record in a new window pass the following query string parameters.
etnThe logical name of the entity
extraqsOptional for forms (see Microsoft Dynamics CRM SDK for 2013 documentation)
pagetypeentityRecord
idThe id of the entity
newWindowtrue (undocumented)
histKeya random numeric sequence (undocumented)
The following sample shows the URL and query string parameters to open an account record in a new window:
window.open("https://contoso.crm.dynamics.com/main.aspx?etn=account&extraqs=&histKey=469645694&id={02c2e648-0acd-41f0-9ca8-d8d131e5f47b}&newWindow=true&pagetype=entityrecord","","status=0,resizable=1,width=1000px,height=600px");
click here for more info.

1 comment:

Akshay Chouhan said...

Hi Harish,

I have to load test CRM 2013 for client, but due to this dynamic URL I'm stuck.

So I want to know how this URL generated(At server level, which I can implement in script which I have to create for load testing.

Thanks,
Akshay

Split the String values with a special character in MS Flow to convert this into Array

 Many times we have a requirement to prepare the Mailing address for some of the documents, suppose there are Address Line1, Address Line2, ...