web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to get a url of record of an entity

(0) ShareShare
ReportReport
Posted on by 437

Hi All, 

I am writing a service in which i have to send a url  to a another application whenever a new record is created .

So my question how I can fetch url ?

Also how my service will come to know that a new record is created/updated or its status was changed.

Please share your thoughts.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Justinjose Profile Picture
    2,707 on at

    Hi windyMill,

    You can trigger a workflow on creation of record and get record url in the workflow by adding "Record Url (Dynamic)". So by developing a custom workflow call your service and pass the "Record Url (Dynamic)".

    Thanks

    Justin Jose

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Windy,

    In another way if you don't familiar with custom workflow -you can create string concatenation .

    Here is sample URL format for onpremise .

                  [1]                          [2]                  [3]                                                                             
    https://DomainName/ORG Name/main.aspx?etc=10195&id=%7b8BC14410-6950-E811-A958-000D3A3AC0C2%7d&newWindow=true&pagetype=entityrecord


    If you look above record URL you need following information to create the URL .

    1- Organization URL  [You can store the organization URL in a config entity so that you can easily get this using retrieve operation]

    2- ObjectTypeCode  [etc - objectTypeCode is same for all environment based on entity]

    3- EntityId  [I hope you have the record id already in your service level]

    So just concatenate the variable value( 1,2,3) and create record  URL.

    Hope this helps.

  • windyMill Profile Picture
    437 on at

    Hi Gautam,

    ok I can get [1] but how i will get [2] and [3] ?

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Windy,

    ObjectTypeCode -

    Every entity has ObjectTypeCode which can not change after creation of entity .So  open any entity record from dynamics CRM and you can find one icon in the top corner of CRM record  called pop out , click on that , record will open in a new window . Check the url you can find the one query string like   "etc=10195". So you can make the value hard code for your entity .

    EntityId

    I hope as per your business requirement , you know which record URL you want , so retrieve the GUID of the record .

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hello,

    I will suggest you to use ObjectTypeName, as object type code can change in another system (when you will deploy your changes to another environment), so you can use entity name so it should be like  etn=entitylogicalname

  • windyMill Profile Picture
    437 on at

    Hi Gautam,

    I have to simply send the url to other system whenever new record is created/updated/status change.

    I have to develop a program which which in run every 5 sec to fetch this.

  • gdas Profile Picture
    50,091 Moderator on at

    Hi Windy,

    I understand what you are saying , that means in your program you should retrieving tye the record details which URL you are going to share.

    So when you retrieve  the record retrieve the record I'd or guid to make the url.

  • windyMill Profile Picture
    437 on at

    Thanks Goutam,

    <xxxx.crm.dynamics.com/.../edit.aspx;id=%7bC68913E7-F764-E811-9CCA-0003FF4605EF%7d>  - I got by clicking email link

    xxx.crm.dynamics.com/main.aspx;extraqs=&histKey=554035851&id=%7bC661023E7-F764-E811-9CCA-0003FF4605EF%7d&newWindow=true&pagetype=entityrecord#39319908    --- This is got what you  had suggested me by opening record then clicking on pop up

    I have change the  Guid jsut to maintain the privacy.

    so now work will to get the guid

    and link will be like this, i will dynamically  change replace the guid from value.

    xxxx.crm.dynamics.com/.../edit.aspx;id=%7bguid%7d>

    Also for this entity etc = 19912 - is unique.

    Is this the correct way ?

    Also still I dont know how I will fetch the guid whenever a new  record created or updated. Well I will create a separate question for this.

    once again thank you so much.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans