Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to use Related custom Entity field data in email Template.(solved)

Posted on by Microsoft Employee

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

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: How to use Related custom Entity field data in email Template.(solved)

    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/

  • MMCJF Profile Picture
    MMCJF 20 on at
    RE: How to use Related custom Entity field data in email Template.(solved)

    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?

  • RE: How to use Related custom Entity field data in email Template.(solved)

    Did u get the solution for this query?

  • Piny Profile Picture
    Piny 52 on at
    RE: How to use Related custom Entity field data in email Template.(solved)

    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

  • talk2.gauravb Profile Picture
    talk2.gauravb 120 on at
    RE: How to use Related custom Entity field data in email Template.(solved)

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to use Related custom Entity field data in email Template.(solved)

    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,

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to use Related custom Entity field data in email Template.(solved)

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

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to use Related custom Entity field data in email Template.(solved)

    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.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to use Related custom Entity field data in email Template.(solved)

    I will answer this question to help others.

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

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

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans