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
Brian Oconnell 23Brian Oconnell 23 

VF Email Template RecipientType = Person Account

I'm trying to make a Visualforce Email Template that uses fields from Opportunity, Opportunity Line Item (Product), and Person Account.  How can I use the Email, First Name, and Last Name fields on Person Account as recipient?

Hi Brian,

Its possible to do that but you have to use Custom controller to get all the required field from Account object based on Account associated with Opportunity. As you have mentioned that you want to use Email, First Name, and Last Name fields from Person Account that is only possible once you enable person accounts than you can query those fields within you custom component class.

For code sample refer below article for salesforce-

Hope this helps.