You need to sign in to do that
Don't have an account?
Visual Force Email Template
Hi All,
We are using a work flow Email Alert to trigger emails to users in our org by using a visual force email template. The template should show all the opportunity line items in a table when the email is sent. For some reason, the data rom the opportunity line item doesnt show up in the email. I am attaching the sample code from the template.
<messaging:emailTemplate subject="{!relatedTo.Name} Opportunity has Data Targeting Request" recipientType="User" relatedToType="Opportunity">
<messaging:htmlEmailBody >
<html>
<body>
<br>Hello,</br>
<br></br>
The following opportunity had Data Targeting requested:<br></br>
Seller: {!relatedTo.Owner.Name}<br></br>
Opportunity: {!relatedTo.Name}<br></br>
Budget: <apex:outputText value="{0,number,$0,000.00}"> <apex:param value="{!relatedTo.Campaign_Budget__c}" /></apex:outputText><br></br>
<p>Link to Opportunity: {!$Label.URL}/{!relatedTo.Id}</p>
<br>For the following line items:</br>
<apex:datatable value="{!relatedto}" var="opp">
<apex:repeat var="o" value="{!opp.OpportunityLineItems}">
<apex:outputPanel rendered="{!o.X3rd_Party_Data__c =True||o.Search_Targeting_Needed__c=True}">
<tr>
<td><a href ="https://-------------salesforce.com/{!o.Id}">{!o.Line_Item_Name__c}</a></td>
<td>{!o.Audience_To_Target__c }</td>
<td>{!o.Data_Segment_Pixel_Tag__c}</td>
For some reason, the o.Id merge field is not getting populated. Am I missing something?
http://cloudyworlds.blogspot.in/2012/11/sending-document-as-attachment-in-form.html
I blogged this and i guess you may like to go through this code once and compare if you have wrongly placed any merge field .
Thanks