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
Sprutiraj Panda 7Sprutiraj Panda 7 

visualforce email tamplate

HI 
I m trying to put the Approval Link o the Visualforce email tamplate But its showing the below error .

Error: Unknown property 'core.email.template.EmailTemplateComponentController.Account'

i use the simple method to create the apprver link to add the Vf page eamil both are i use but its not working on the visualforce page email tamplate showing the above error please any one helpme on that ..
{!ApprovalRequest.External_URL}
{!ApprovalRequest.Internal_URL}
PriyaPriya (Salesforce Developers) 

Hi Sprutiraj,

Can you also provide the code you have written for better understanding it?

Regards,

Priya Ranjan

Sprutiraj Panda 7Sprutiraj Panda 7
Hi priya thi my code on vf page after i put the Approval ink on the page its showing the below error .

Error: Unknown property 'core.email.template.EmailTemplateComponentController.Account'


<messaging:emailTemplate subject="Case report for Account: {!relatedTo.name}"
 recipientType="Contact" relatedToType="Account">
    <messaging:htmlEmailBody>
    <html>
            <body>

            <p>Dear {!recipient.name},</p>
            <p>Below is a list of cases related to {!relatedTo.name}.</p>
            <table border="0" >
                <tr>
                    <th>Case Number</th><th>Origin</th>
                    <th>Creator Email</th><th>Status</th>
                </tr>
                <apex:repeat var="cx" value="{!relatedTo.Cases}">
                <tr>
                    <td><a href = 
                        "https://yourInstance.salesforce.com/{!cx.id}">{!cx.CaseNumber}
                    </a></td>
                    <td>{!cx.Origin}</td>
                    <td>{!cx.Contact.email}</td>
                    <td>{!cx.Status}</td>
                    <td>{{!ApprovalRequest.Internal_URL}</td>

                </tr>
                </apex:repeat> 
            </table>
            <p/>
            <center>
                <apex:outputLink value="http://www.salesforce.com">
                    For more detailed information login to Salesforce.com
                </apex:outputLink>
            </center>
            </body>
        </html>