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
Linda 98Linda 98 

Visulaforce email template HELP!!!


I am having a custom object as master object and a child object.which is similar to opportunity and opportunity products.(custom master object,custom child object)
I am using them in Visualforce email template.
But i am not able to get that.
I want to show line items of custom child object when i send email
here is my code.How can i call line items on This template.
Please help me where i am going wrong
<messaging:emailTemplate subject="customobjectlineitems: {!relatedto.Name}" 
        relatedToType="master custom object (LIKE OPPORTUNITY)">

<messaging:htmlEmailBody >        
         <font face="arial" size="2">
         <p>List of products related to the Custom master object:<b> {!}</b>.</p>  
         <table border="0" >
             <th>Unit Price</th>
               <th>Total Price</th>
           <apex:repeat var="co" value="{!relatedTo.child custom object (LIKE OPPORTUNITYLINEITEMS)}">

//ERROR HERE  because i am using line items wrong here NOt sure how can i.


On line #18 - are you using the PLURAL of the relatedTo.child?  Might help to see the real code on #18, and #3
Linda 98Linda 98
As it is a custom object,i am using it as it is. Like Custom_object__c