function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Priya MishraPriya Mishra 

conditional subject with merge fields in the html email template

Hi All,

I want to display the subject in the Html email Template with the merge field.
This is below added in the subject part 
Escalation: Work Order- {!MedConnect__Work_Order__c.Name} is awaiting acceptance.
Now my requirement is before Escalation verbaige i want to display priority field value with the lable.
If value is not present in the field field label and value should not display.
pls help me to complete this
Thanks in Advance.
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Priya,

Can you check if the below stack exchange answer answers your requirement.

https://salesforce.stackexchange.com/questions/187716/conditional-logic-in-salesforce-text-email-template

If this solution helps, Please mark it as best answer.

Thanks,