You need to sign in to do that
Don't have an account?
Charlie Pickles 5
apex email template not working
Please can someone explain why this wouldn't work?
the error im receiving is:
Error: Engineer_Returns_Contact line 24, column 23: The element type "apex:outputPanel" must be terminated by the matching end-tag "</apex:outputPanel>"
Error: The element type "apex:outputPanel" must be terminated by the matching end-tag "</apex:outputPanel>".
<messaging:emailTemplate subject="RAM Cameras to Return" recipientType="Contact" relatedToType="Case">
<messaging:htmlEmailBody >
<html>
<body>
kdmksmda
djbaskns
sjdnsaokdna
<table>
<apex:repeat Value="{!relatedto.Service_Bookings__r}" var="SVC">
<apex:outputPanel rendered="{!AND(SVC.Work_Type__c = "Service Call"), SVC.Camera_Returned__c = False)}">
<tr>
<td style="color: #EB690B; text-align: Center; padding-left: 10%; padding-right: 10%;"><b>{!SVC.Case_Owner__c}</b></td>
<!-- <td>{!SVC.Account_name__c}</td> -->
<!-- <td>{!SVC.Case_ID__c}</td> -->
</tr>
</apex:outputPanel>
</apex:repeat>
</table>
</body>
</html>
the error im receiving is:
Error: Engineer_Returns_Contact line 24, column 23: The element type "apex:outputPanel" must be terminated by the matching end-tag "</apex:outputPanel>"
Error: The element type "apex:outputPanel" must be terminated by the matching end-tag "</apex:outputPanel>".
<messaging:emailTemplate subject="RAM Cameras to Return" recipientType="Contact" relatedToType="Case">
<messaging:htmlEmailBody >
<html>
<body>
kdmksmda
djbaskns
sjdnsaokdna
<table>
<apex:repeat Value="{!relatedto.Service_Bookings__r}" var="SVC">
<apex:outputPanel rendered="{!AND(SVC.Work_Type__c = "Service Call"), SVC.Camera_Returned__c = False)}">
<tr>
<td style="color: #EB690B; text-align: Center; padding-left: 10%; padding-right: 10%;"><b>{!SVC.Case_Owner__c}</b></td>
<!-- <td>{!SVC.Account_name__c}</td> -->
<!-- <td>{!SVC.Case_ID__c}</td> -->
</tr>
</apex:outputPanel>
</apex:repeat>
</table>
</body>
</html>
Please try below one.
In this line. added extra ')'. remove and try it.
something like this. I hope this helps you.