RE: CRM URL Links - How are they generated?
Hi,
Microsoft Dynamics Crm Links are generate dynamiccally. It's not as the old web sites or web applications where the "/" means a sub folder.
There is an example of a CRM link :
http:/CRMServer/Organization/main.aspx?etc=4204&extraqs=%3f_gridType%3d4204%26etc%3d4204%26id%3d%257bEBCB04A7-6A48-E411-941E-00155D6B4D32%257d%26rskey%3d458296158&histKey=365805695&newWindow=true&pagetype=entityrecord&rskey=458296158#370203527
attribute |
Description |
etc |
The Entity ObjectTypeCode : 4204 = Fax, we can replace this attribute by the etn attribute for the entity logical name. |
extraqs |
The Query String parameters |
histKey |
A history random key used internally within Dynamics CRM to manage navigation. |
newWindow |
Allows to open an new window to display this record or to stay on the same window. |
pagetype |
It's how to display your record: entityrecord for a one record, entitylist to display a view |
rskey |
The rskey value is used internally within Dynamics CRM and controls the Next/Previous Record spinner control on the Entity form allowing you to navigate the list of records that the form was opened from. It seems that when you open a record from a list view, the rskey is generated and used in callbacks to determine the next/previous record. |
extraqs Contains the _gridType, etc, id and rskey of the entity record.
etc and rskey are the same as etc and rskey attributs in the URL
_gridType and etc has the same value.
id = entity record id as a GUID like this : 257bEBCB04A7-6A48-E411-941E-00155D6B4D32
For the %3d and %257b etc ... there are encoded characters.
%3d -> =
%257b -> {
%257d -> }
%26 -> &
So, if you need to construct an url to a specific record. you need to get his ObjectTypeCode and his Id. For the histKey and rsKey you can put a random value.
Good luck.