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 use Related custom Entity field data in email Template.(solved)

(0) ShareShare
ReportReport
Posted on by

While i was working on Email templates , I found out how we can use related entity and field in email template.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    I will answer this question to help others.

    Just use this format in your email template. It works !!

    {!<entitylogicalname>: <fieldlogicalname>; <Default Text>}

  • Verified answer
    Community Member Profile Picture
    on at

    If you want to show lookup value name of related entity. use below.  property.

    {!<entitylogicalname>: <fieldlogicalname>/@name; <Default Text>}

    {!lead:qualifyingopportunityid/@name;}, that so template will display name of the lookup values.

  • Community Member Profile Picture
    on at

    In order to return just Dates add at the end of the fieldlogicalname, /@date. Similarly for just the Time portion, add /@time

  • Community Member Profile Picture
    on at

    Lookups return the GUID value, to return the Primary Attribute’s Friendly Name, add /@name.

    Option Set Values will return the numerical value. In order to return the Friendly name add /@name,

  • talk2.gauravb Profile Picture
    120 on at

    How to get values from related entity, for eg in case entity there is a custom field which is a lookup field of account. In email template if i want any value from account then how can i get that in email template.

  • Piny Profile Picture
    56 on at

    Hi Gaurav,

    I have a same problem like yours.I'm also looking for a way to get value of related entity which is a look up filed of account.I'll be appreciate if you help me to figure out as well.

    Thanks,

    Piny

  • Dheeraj Pachipala Profile Picture
    5 on at

    Did u get the solution for this query?

  • MMCJF Profile Picture
    20 on at

    Hi Neeraj

    I have created an entity specific email template and would like to use field data from a custom related entity.

    I have tried using the above format. However, it seems like the relation is not recognized as I am given the default text.

    What am I doing wrong?

  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    HI,

    Please refer below article to insert dynamic content in email template.

    passion4dynamics.com/.../

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans