+ Start a Discussion
babloo123babloo123 

Code Issue

I am trying to use a VF Email template but when I use below I am getting the error as
 Error: Unknown property 'core.email.template.EmailTemplateComponentController.COI_Expertise__c'  Can some one guide me where I am wrong
<messaging:emailTemplate subject="xyz" recipientType="Contact" relatedToType="COI_Expertise__c">
<messaging:plainTextEmailBody >
Reviewer Name : {!COI_Expertise__c.Reviewer_Name__c}

</messaging:plainTextEmailBody>
</messaging:emailTemplate>
Shashikant SharmaShashikant Sharma
Change {!COI_Expertise__c.Reviewer_Name__c} to below : 

{!relatedToType.Reviewer_Name__c}


It should fix your issue.