You need to sign in to do that
Don't have an account?
bigga
Opportunity Field in Plain Text Email Template
I have a button on opportunities to send an email to the primary contact role for that opportunity. I'm trying to add the Opportunity Description to that email.
This works:
<messaging:emailTemplate subject="Your recent order" recipientType="Contact" replyTo="myemail@mydomain.com" relatedToType="Opportunity">
<messaging:plainTextEmailBody >
Hi {!Recipient.Firstname} -
Last year around this time you ordered XXX from us at Our Company. Is it time to do that again?
Please let me know if I can help you with anything. Thanks!
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
But I have to manually replace XXX with the opportunity description. Adding {!Opportunity.Description} to the template gives me this error:
Error: Unknown property 'core.email.template.EmailTemplateComponentController.Opportunity'
How can I include this Descriiption in an email?
This works:
<messaging:emailTemplate subject="Your recent order" recipientType="Contact" replyTo="myemail@mydomain.com" relatedToType="Opportunity">
<messaging:plainTextEmailBody >
Hi {!Recipient.Firstname} -
Last year around this time you ordered XXX from us at Our Company. Is it time to do that again?
Please let me know if I can help you with anything. Thanks!
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
But I have to manually replace XXX with the opportunity description. Adding {!Opportunity.Description} to the template gives me this error:
Error: Unknown property 'core.email.template.EmailTemplateComponentController.Opportunity'
How can I include this Descriiption in an email?
All Answers
Do I need to specify the Opportunity Description more clearly somehow?
Here's the JS of the button
location.replace('/email/author/emailauthor.jsp?p2_lkid={!Contact.Id}&rtype=003&p3_lkid={!Account.Id}&template_id=00XE0000000YHV1&retURL=/{!Opportunity.Id}&p5=myBCCemailaddyhere@domain.com')
Regards