Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM URL Links - How are they generated?

Posted on by Microsoft Employee

Hi, Hope this question is in the correct place. In the web version of crm when you click on a customer it opens a new window with a new url, if within that customer you click contacts it opens another window but from what i can tell the same url. Different customers have different urls, but again it appears when you click in the contacts of any customer the contact url is the same as the customer......My understanding of urls is the each / is it drilling further and further down into the respective file to give you the information you ultimately desire. So i cant understand how two different windows containing different information can have the same url.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM URL Links - How are they generated?

    Hi NIZAR JLASSI,

    I am working on CRM 2016 and generated the url as describe above, with newWindow = false, and access the url inside using window.open(), as you describe above, I was expecting it would open in the same page without reloading the whole. but it reloaded the whole. could you please suggest a way it only refreshes the data part e.g. contact list portion and not reloads the whole page?
    Here is the link of original question what I need.
    Thanks

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM URL Links - How are they generated?

    hi thanks for that, I have found out that the guid is linked to a master table, so essentially they are primary keys to the table.

    thanks again for your help

  • Verified answer
    Nizar JLASSI Profile Picture
    Nizar JLASSI on at
    RE: CRM URL Links - How are they generated?

    The url is encoded twice, you can use a tool like meyerweb.com/.../dencoder

    if you paste your url and you decode it twice you will se an url like this :

    crmserver/.../main.aspx;extraqs=?_gridType=4204&etc=4204&id={EBCB04A7-6A48-E411-941E-00155D6B4D32}&rskey=458296158&histKey=365805695&newWindow=true&pagetype=entityrecord&rskey=458296158#370203527

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM URL Links - How are they generated?

    hi i have posted another question in here but at the bottom hopefully you will understand the question :D

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM URL Links - How are they generated?

    Hi, Really appreciate your detailed response. I have done alot of analysis of different crm urls and came to the educated guess what the ID was. So I suppose the next question is, the ID looks encrypted, what type of encryption is being used here? If I wanted to transpose the ID back to plaintext would it be as simple as using ANSI code or is it encrypted with a key.....The reason I ask is not malicious by the way, i am trying to develop a tab manager for CRM, for 3 different reasons, 1. mini project for uni, 2. Impress my boss, 3. interested to learn :D

    thanks

    joe

  • ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: CRM URL Links - How are they generated?

    To get the link to a record you can use the email a link button on the command bar!

    Hope this helps,

    Scott

  • Verified answer
    Nizar JLASSI Profile Picture
    Nizar JLASSI on at
    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM URL Links - How are they generated?

    Is the above question not presented correctly, are examples and screenshots needed to make it clearer?

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