Here is the formula I am trying I get the result in the formula field but it turn blank when I am using it in Email template

  • What kind of email template? Text, HTML, Visualforce, Lightning? This also isn't a valid formula anywhere, assuming Legal Business Name is a text field.
    – sfdcfox
    Commented Apr 3 at 10:44
  • Hi @sfdcfox this is HTML template basically what we wanted is if this field is blank then in the template don't use apostrophe s after the field else juts the the legal business field Commented Apr 3 at 11:14

1 Answer 1


Classic templates (text, HTML, custom) do not support formulas. They're specifically called "merge fields" for a reason. Instead, use a Visualforce template, which does support formulas. Aside from that, the formula itself is wrong. You need to use a function that returns a Boolean value:

  relatedTo.Legal_Business_Name__c & "'s",
  • Thank you so much for the clarification :) Commented Apr 3 at 11:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .