You need to sign in to do that
Don't have an account?
Snider433
Using IF ELSE statements in Email Templates
Hi,
I am trying to send an email to a friend or Account using their Account Owner .I am planning to make a single email template and use IF Else statment to make the Owner name and contact appear on the template depending on thier Account Owners.I like to know the syntax for if else used in email templates
Any help is Appreciated.
Thanks...
How can I use it in the template .Below is my test template It doest work.
<html>
if({!Enrollment__c.AccountOwnerID__c} == '00570000001DdGU')
{
<p>I am owner</p>
}
else
{
<p>I am not owner</p>
}
</html>
then I got an email reply as below
if(00570000001DdGU == '00570000001DdGU') {
I am owner
} else {I am not owner
}I don't think we can achieve this way unless we use javascript.... As a part of the solution I would try creating a custom field whose value would be updated to 'I am owner' or 'I am not owner' based on the required condition (through trigger or workflow) and use this custom field in the e-mail template as merged field.
--lvivanin