You need to sign in to do that
Don't have an account?
fe_alden
Email Template Conditional Subject
I want to display something different in the subject if a field has a certain value. If its another value, I want display something else. Where am I going wrong here?
<messaging:emailTemplate
replyTo="email@salesforce.com"
subject="{!if(!RelatedTo.Feature_Code__c='5','Y','N')}"
recipientType="User" relatedToType="License_Request__c">
Hi,
It seems the issue is in the syntax. Once you sue the '!' sign for if, it need not repeated for the field .
Try
<messaging:emailTemplate
replyTo="email@salesforce.com"
subject="{!if(RelatedTo.Feature_Code__c='5','Y','N')}"
recipientType="User" relatedToType="License_Request__c">
Hope this helps.
All Answers
Hi,
It seems the issue is in the syntax. Once you sue the '!' sign for if, it need not repeated for the field .
Try
<messaging:emailTemplate
replyTo="email@salesforce.com"
subject="{!if(RelatedTo.Feature_Code__c='5','Y','N')}"
recipientType="User" relatedToType="License_Request__c">
Hope this helps.
That did the trick! Thank you!