2

I have recently moved to Lightning Email Template from custom classic email template. The difference I have observed is:

Classic Email template resolve the merge fields upon insertion into Email pane of the Email Quick action in Lightning where as Lightning Email template does not resolve it upon insertion. See images below:-

Lightning Email template:-

enter image description here

Classic Email template:-

enter image description here

is this a limitation in Salesforce Lightning or i am doing something wrong?

2
  • Lightning Email template supports HML and SML. Why don't you try and convert HML to SML (used in classic) to see if that helps resolving in preview pan. Handlebars Merge Language (HML) for email templates - If your email template has merge fields with three curly braces ({{{), you’re using an HML email template. If the merge fields have one curly brace ({), or an exclamation mark (!), you’re using a SML (Salesforce Merge Language). – Mitesh Jan 24 '20 at 13:35
  • It will be counterintuitive though as per docs HML provides greater flexibility than SML. – Mitesh Jan 24 '20 at 13:52
2

I experience the same and it seems expected. There's a "preview" button to see how the email will actually look when using Lightning email templates.

enter image description here

The reason I say "expected" is because it seems to be noted in the documentation for Emailing Customers in Lightning Experience

Merge fields resolve only on send and preview. The field appears as plain text when inserted into the publisher.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.