You need to sign in to do that
Don't have an account?
mhitt
VF email template error
Hello,
I am trying to write my first VF email template, but I am running into an error and not sure what's causing it.. Please see below, any help is appreciated.
VF Template
Thank you!
I am trying to write my first VF email template, but I am running into an error and not sure what's causing it.. Please see below, any help is appreciated.
VF Template
<messaging:emailTemplate subject="Pending RON eClosing for {!eVolve_Service_Request__c.GF_Number__c}" recipientType="Contact" replyTo="team-evolve@republictitle.com" relatedToType="eVolve_Service_Request__c"> <messaging:htmlEmailBody > <html> <body> <!--Begin body of email. --> Your request for a {!eVolve_Service_Request__c.RecordType} has been received and is currently Pending. <br/><br/> The eVolve Closer assigned to your request is {!eVolve_Service_Request__c.eVolve_Closer__c}. <br/><br/> The next steps that will be taken, will be to begin the vetting process to determine if all signing parties meet the minimum requirements to conduct a Remote Online Notarization. <br/><br/> The details of your request are listed below. <br/><br/> <b>Signing Service Type:</b> {!eVolve_Service_Request__c.RecordType} <br/><br/> <b>Contact Information</b> <br/><br/> <b>Requestor Name:</b> {!eVolve_Service_Request__c.Contact_Name__c} <br/> <b>Requestor Phone:</b> {!eVolve_Service_Request__c.Contact_Phone__c} <br/> <b>Requestor E-mail:</b> {!eVolve_Service_Request__c.Contact_Email__c} <br/><br/> <b>Transaction Details</b> <br/><br/> <b>GF#:</b> {!eVolve_Service_Request__c.GF_Number__c} <br/> <b>Transaction Property Address:</b> {!eVolve_Service_Request__c.Transaction_Property_Address__c} <br/> <b>Signing Window Requested:</b> {!eVolve_Service_Request__c.Signing_Date_Requested__c} <br/> <b>Estimated Closing Date:</b> {!eVolve_Service_Request__c.Estimated_Closing_Date__c} <br/><br/> <b>Signing Party Information</b> <br/><br/> <apex:repeat value="{!eVolveServiceRequestComp}" var="sp"> <tr> <td>{!sp.Name__c}</td> <td>{!sp.Phone__c}</td> <td>{!sp.Email__c}</td> <td>{!sp.Country__c}</td> <td>{!sp.Time_Zone__c}</td> </tr> </apex:repeat> <c:eVolveServiceRequestComp ESRId="{!relatedTo.Id}" /><br/><br/> <b>Service Request Notes:</b> insert Service Request Notes <br/><br/> If you have any questions regarding this request please contact eVolve at 214-556-0400 and reference {!eVolve_Service_Request__c.Name}. </body> </html> </messaging:htmlEmailBody> </messaging:emailTemplate>Component
<apex:component controller="eVolveServiceRequestClass" access="global"> <apex:attribute name="ESRId" type="Id" description="Id of the Service Request" assignTo="{!eVolveServiceRequestId}"/> <apex:repeat value="{!eVolveServiceRequestComp}" var="sp"> <tr> <td>{!sp.Name__c}</td> <td>{!sp.Phone__c}</td> <td>{!sp.Email__c}</td> <td>{!sp.Country__c}</td> <td>{!sp.Time_Zone__c}</td> </tr> </apex:repeat> </apex:component>Controller
public class eVolveServiceRequestClass { public id eVolveServiceRequestId {get;set;} public List<ESR_Signing_Party__c> geteVolveServiceRequestComp(){ List<ESR_Signing_Party__c> esp; esp = [SELECT Name__c, Phone__c, Email__c, Country__c, Time_Zone__c FROM ESR_Signing_Party__c WHERE eVolve_Service_Request__c =: eVolveServiceRequestId]; return esp; } }
Thank you!
But you can try the suggestions as mentioned in the below blog (https://salesforce.stackexchange.com/questions/29956/visualforce-email-template)
I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.
Thanks.