Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Email template {!<entityname>:<fieldname>;} Not working

Posted on by Microsoft Employee

Hi All,

I read in this blog https://community.dynamics.com/crm/f/117/t/201584

that it is possible to add fields from another entity in email template. But it is not working for me

My scenario is:

1. Created the template for Order Entity

2. I want few fields from opportunity inside it

3. Sender receiver and regarding object is set using javascript

4. Regarding object is order entity record

5. Now according to the suggestion I am adding opportunity fields like this {!opportunity:name;}

6.That turns yellow 

7. But when I run the code, it doesn't show any value

What I am doing wrong? It is something with regarding object or relation between entities or unsupported issue?

Anybody has another way to do it?

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Email template {!<entityname>:<fieldname>;} Not working

    Thanks for the reply. I solved it using Global template. I am setting values from plugin.

    In plugin I am retrieving all the order, opportunity data and then sending the email.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Email template {!<entityname>:<fieldname>;} Not working

    Hi,

    You may take a look at the following article.

    community.dynamics.com/.../insert-dynamic-values-from-custom-entities-in-an-email-template-microsoft-dynamics-crm

    It could be useful to you.

    BR,

    Judy

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans