You need to sign in to do that
Don't have an account?
sundhar.mks1.3962649227519546E12
How to get the Opportunity product information to email template?
Hi,
I have added the number of product to Opportunity. how to call the product information email template?
Is this need to add the product to price book entry before add the template? Kindly give any example
Thanks
I have added the number of product to Opportunity. how to call the product information email template?
Is this need to add the product to price book entry before add the template? Kindly give any example
Thanks
I have tried below code but i got error: Missing required attribute relatedToType="" when using {!relatedTo}.How to solve this?
<apex:repeat value="{!relatedTo.OpportunityLineItems}" var="line">
<tr>
<td>{!Line.Product Code}"/></td>
<td>{!Line.Quantity}"/></td>
<td>{!Line.Product Description}"/></td>
<td>{!Line.Sales Price}"/></td>
</tr>
</apex:repeat>
If we need add the product to OpportunityLineItems before call the template?
This template will display the Opportunity and its OpportunitylineItems(prodcuts associate with the opportunity record)
I have used the code to email template there is i got a error.Kindly refer the bwlow code
Email template
===================
<messaging:emailTemplate subject="Product Information" recipientType="User" >
<messaging:plainTextEmailBody >
Dear Customer,
This is your new Visualforce Email Template.
</messaging:plainTextEmailBody>
<messaging:attachment renderAs="pdf">
<head>
<style>
@page {
size: auto; /* auto is the initial value */
margin-top: 0.0%;
margin-left: 4mm;
margin-right: 4mm;
margin-bottom: 4mm;
}
td{
font-family:Arial,Helvetica,sans-serif;
font-weight:normal;
font-size:15px;
}
.tds{
font-family:Arial,Helvetica,sans-serif;
font-weight:normal;
font-size:15px;
}
td.normal{
font-family:Arial,Helvetica,sans-serif;
font-weight:normal;
font-size:15px;
}
td.nbold{
font-family:Arial,Helvetica,sans-serif;
font-weight:bold;
font-size:15px;
}
</style>
</head>
<tr>
<td width = "14%"><b>Product Code</b></td>
<td width = "10%"><b>Quantity</b></td>
<td width = "44%"><b>Product Description</b></td>
<td width = "44%"><b>Sales Price</b></td>
</tr>
<apex:repeat value="{!relatedTo.OpportunityLineItems}" var="line">
<tr>
<td>{!Line.Product Code}"/></td>
<td>{!Line.Quantity}"/></td>
<td>{!Line.Product Description}"/></td>
<td>{!Line.Sales Price}"/></td>
</tr>
</apex:repeat>
<tr><td> </td></tr>
<tr><td> </td></tr>
</messaging:attachment>
</messaging:emailTemplate>
When i add the this line <apex:repeat value="{!relatedTo.OpportunityLineItems}" var="line"> i got following Eror. how to solve this?
Error: Missing required attribute relatedToType="" when using {!relatedTo}.
Changed the first line but product Information does not pullthrough to emil template,
Is it possible to get all opportunity details, Product Details, Order Details, and scheduling of orders in the lightning Email Template?
Please let me know how to do this ASAP...