function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Wei Dong 10Wei Dong 10 

Email Templates Cannot Refer the current Object's parent's or children's properties?

Hello all:
Suppose I have a Case and a Product. And the "Product" is One to Many Cases. So a Case has a "Lookup(Product)"  field referring to "Product".

Now If I write something like this in the Email Template:

{!Case.CA_Product__r.SomeProductField}

When I save this template, I found the template will AUTOMATICALLY remove "SomeProductField", this means it seems the template ONLY leave the basic properties belonging to the Case itself.

So now my question is:
1)Does an email template not have a function to refer its parent or child properties' properties? (something like what I gave you in my example)?
2)So I have to use formular field to refer the parent field value in the Case and then refer this in the email template?
Syed Insha Jawaid 2Syed Insha Jawaid 2
Hi Wei

It is an idea posted on Salesforce as well.Email template only allows fields from the currrent object.
Formula fields is the only solution left for this.

For refernce :  https://success.salesforce.com/ideaView?id=08730000000Brk7AAC

Cheers!!!