You need to sign in to do that
Don't have an account?
Visualforce email template child to parent?
Hi i have this relationship master/detail:-
Online Application:Parent
Applicant: Child
Now what i want to do is basically whenever an applicant is created is send an email using a visualforce email template i need to do some dynamic stuff :0
now the problem is how do i access the online applicaton fields from the applicant i.e.
<messaging:emailTemplate recipientType="Contact" relatedToType="Applicant__c"
subject="Thank you for your Application!">
how do i access the applicant's online application details
also as this will be sent via a workflow to the applicant's email what do i put in recipientType?
This works for pulling Account info from a contact email:
<messaging:emailTemplate subject="test" relatedToType="Contact" > <messaging:plainTextEmailBody > {!relatedTo.Account.Name}
For you this should work:
{!relatedTo.online_application__r.field}
All Answers
This works for pulling Account info from a contact email:
<messaging:emailTemplate subject="test" relatedToType="Contact" > <messaging:plainTextEmailBody > {!relatedTo.Account.Name}
For you this should work:
{!relatedTo.online_application__r.field}