Create dynamic link for related record from Dynamic CRM Global Email Template

Very interesting article from my colleague – Rajesh

Amiz crm

One of my Requirement is to create the link for Opportunity while qualifying Lead. But in CRM AS – IS functionality we can’t give the ID value, it should give the Name value only. But when you create the link we need the Id of the record. So we need to do the following code.

So I open the Email Template and add the Qualifying Opportunity field in that template using Insert/Update button.

Template Link 1

Save the template and ran the template, It shows only name of the opportunity. In Default CRM will take {!lead:qualifyingopportunityid/@name;}, that so template will display name of the lookup values.

Template Link 2

But Creating link we need the opportunity id, So I did the following steps

Open the template and edit the following text Save the template.


Template Link 3

Now I ran the template, the Output was came with my exception.

Template Link 4

I hope this will helps U πŸ™‚

View original post

3 thoughts on “Create dynamic link for related record from Dynamic CRM Global Email Template”

  1. Hi,

    I was trying to follow the above process to pull the incidentid…but this is not working. It just gives the text value like Case Number: {!Case:incidentid;} . What is the mistake here.

    1. Hi Santha Kumari,

      I was on business trip and hence could not reply. Perhaps you have already resolved this.

      From what you have sent i can see you have mentioned the entity name as Case. That is just the display name. you should put it {!incident:incidentid;} and that should work.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s