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
alok29novalok29nov 

Email template {!contact.ownerid} merge field

Hi,

 

I have a requirement where I need to create an email template where i need to include a contact Owner merge field. When I use {!contact.ownerid} in my template, I don't get any  value. Can anybody answer this why is this happening.

 

Thanks,

Alok

AmitSahuAmitSahu

Try :

 

 {!recipient.Owner.Name}

alok29novalok29nov

It did not work. Still did not get any value..

AmitSahuAmitSahu

I have used the above in Visual Force template and the recepient type is Contact and related to Account and it's working on production as well as sandbox.

 

What you are using ?

alok29novalok29nov

I am using a text template. I am having problem with lookup fileds. other fields for example contact.email, contact.firstname are working.Facing issue with all the contact.owner merge fields.

 

With regadrs,

Alok

AmitSahuAmitSahu

Have you kept the template in Unified folder ?

 

I tried again these two and the values are comming in the email for text template:

 

{!Contact.OwnerFirstName}

{!Contact.OwnerId}

 

Have you tried sending test mails to you ??

alok29novalok29nov

No, I kept it in some other folder.  But, now I moved it to Unified folder. Still no luck.. I guess there might be setting for email templates elsewhere which I need to change. 

 

Regards,

Alok

SabrentSabrent

what salesforce edition are you using? 

When you do a basic query [SELECT OwnerId FROM Contact WHERE AccountId='xxxx0000XXDl2'], does it return something?