You need to sign in to do that
Don't have an account?

Can RecipientType be a lookup field in the RelatedToType sObj?
Hello,
I'm building a VF email template and ran across a problem. The RecipientType is a Contact and RelatedTo is Opportunity. However, I would like to pull the name of the Billing Contact (a lookup) in the Opportunity but I keep on getting an error when I replace merge field for the email greeting. I tried {!RelatedToType.Billing_Contact_FirstName} but got an error: Unknown: String.Billing_Contact_FirstName. How can I pull that field into the email template? Any idea is definitely appreciated! :)
I'm building a VF email template and ran across a problem. The RecipientType is a Contact and RelatedTo is Opportunity. However, I would like to pull the name of the Billing Contact (a lookup) in the Opportunity but I keep on getting an error when I replace merge field for the email greeting. I tried {!RelatedToType.Billing_Contact_FirstName} but got an error: Unknown: String.Billing_Contact_FirstName. How can I pull that field into the email template? Any idea is definitely appreciated! :)
not very sure but try below code

I figured it out: I was typing RelatedToType instead of just RelatedTo. Thanks! :)