You need to sign in to do that
Don't have an account?
Juul
Visualforce email template issue
Hi,
I've created a visualforce template with help of this app: https://appexchange.salesforce.com/listingDetail?listingId=a0N300000016cYlEAI
When I generate a test (email) with myself as user and a test opportunity everything is working fine. It displays all the product data.
But when the workflow is triggered and I receive a notification email, there is no data visible in the email.
What's going wrong? (sorry for the Dutch text...)
<messaging:emailTemplate recipientType="User" relatedToType="Opportunity" subject="Je bent zojuist toegevoegd aan de dienstenlijst van de Opportunity: {!relatedTo.name}"> <messaging:htmlEmailBody > <html> <body> <STYLE type="text/css"> TH {font-size: 11px; font-face: arial;background: #CCCCCC; border-width: 1; text-align: center } TD {font-size: 11px; font-face: verdana } TABLE {border: solid #CCCCCC; border-width: 1} TR {border: solid #CCCCCC; border-width: 1} </STYLE> <font face="arial" size="2"> <p>Beste collega,</p> <p>Je bent zojuist toegevoegd aan de dienstenlijst van de Opportunity:<b> {!relatedTo.name}</b>.</p> <p>Controleer voordat je wijzigingen wil doorvoeren of je aan het opportunity team van deze opportunity bent gekoppeld, anders krijg je de foutmelding dat je hier geen rechten voor hebt.</p> <p>Mocht je nog niet aan het opportunityteam zijn gekoppeld neem dan contact op met {!relatedTo.owner.name}.</p> <br/>Account: <i> {!relatedTo.Account.name} </i> <br/>Opportunity eigenaar: {!relatedTo.owner.name} <br/>Opportunity fairshare waarde: {!ROUND(relatedTo.Amount,0)} <br/>Opportunity gunningsdatum: {!relatedTo.CloseDate} <p/> <table border="0" > <tr > <th>Actie</th><th>Dienstnaam</th><th>Dienst specificatie</th><th>Hoeveelheid</th><th>Verkoopprijs</th><th>Totale fairshare waarde label</th> </tr> <apex:repeat var="opp" value="{!relatedTo.OpportunityLineItems}"> <tr> <td><a href="https://emea.salesforce.com/{!opp.id}">View</a> | <a href="https://emea.salesforce.com/{!opp.id}/e">Edit</a></td> <td>{!opp.PriceBookEntry.name}</td> <td>{!opp.Service_specification__c}</td> <td>{!ROUND(opp.Quantity,0)}</td> <td>{!ROUND(opp.UnitPrice,0)}</td> <td>{!ROUND(opp.TotalPrice,0)}</td> </tr> </apex:repeat> </table> <p /> </font> </body> </html> </messaging:htmlEmailBody> <messaging:plainTextEmailBody > Beste collega, Je bent zojuist toegevoegd aan de dienstenlijst van de Opportunity: {!relatedTo.name} Controleer voordat je wijzigingen wil doorvoeren of je aan het opportunity team van deze opportunity bent gekoppeld, anders krijg je de foutmelding dat je hier geen rechten voor hebt. Mocht je nog niet aan het opportunityteam zijn gekoppeld neem dan contact op met {!relatedTo.owner.name}. Account: {!relatedTo.Account.name} Opportunity eigenaar: {!relatedTo.owner.name} Opportunity fairshare bedrag: {!ROUND(relatedTo.Amount,0)} Opportunity gunningsdatum: {!relatedTo.CloseDate} [ Dienst Naam ] - [ Dienst specificatie ] - [ Hoeveelheid ] - [ Verkoopprijs] - [ Totale fairshare waarde label ] ---------------------------------------------------------------------------------------------------------------------------------------------- <apex:repeat var="opp" value="{!relatedTo.OpportunityLineItems}"> [ {!opp.PriceBookEntry.name} ] - [ {!opp.Service_specification__c} ] - [ {!ROUND(opp.Quantity,0)} ] - [ {!ROUND(opp.UnitPrice,0)} ] - [ {!ROUND(opp.TotalPrice,0)} ] </apex:repeat> </messaging:plainTextEmailBody> </messaging:emailTemplate>
Do I need to create a public class and a component?
The installed application doesn't contain these files so I'm doubting.
Anyone?