Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to get the field values from a related custom entity in an email template – Microsoft Dynamics CRM

Posted on by 52

Hello friends,

I'm creating email template and accessing data fields from custom entity by using this syntax : {!EntityLogicalName:FieldLogicalName;}

and related custom entity (lookup field ) syntax : 

Customer: {!dot_document:dot_Customer/@name;Aaka Restaurant}

Its working great.But my requirement is i need to access Field from lookup entity ,Example :

Document entity :Customer (lookup field) ..I want to access First name,city,or purchase Date of Customer.

I would like to know the way of doing this.I will appreciate if somebody help me.

Thanks,

Piny.

*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 get the field values from a related custom entity in an email template – Microsoft Dynamics CRM

    Hi,

    Only primary column from lookup field can be shown in Email template.

    You  can insert placeholder in your email template and then use custom code to replace place holder with actual value using plugin/custom workflow.

  • Piny Profile Picture
    Piny 52 on at
    RE: How to get the field values from a related custom entity in an email template – Microsoft Dynamics CRM

    Thanks for your help! I used the workflow instead of the email template.

  • Piny Profile Picture
    Piny 52 on at
    RE: How to get the field values from a related custom entity in an email template – Microsoft Dynamics CRM

    Hi,

    nop, we can't use Email template but we can use workflow to complete the requirement, and it worked.

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: How to get the field values from a related custom entity in an email template – Microsoft Dynamics CRM

    Hi Piny,

    How about if you can bring that column into that table by using the calculated column?

  • RE: How to get the field values from a related custom entity in an email template – Microsoft Dynamics CRM

    Hello there, my dear friend, Did you find a solution?

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans