Loading

Use Salesforce Classic template with Rich Text Merge Fields in Lightning Experience

Julkaisupäivä: Sep 22, 2026
Kuvaus

In Lightning Experience, if you use a Salesforce Classic HTML email template that has a Rich Text Editor (RTE) merge field, the RichText to PlainText conversion may not respect the line breaks as expected in the text output.

Ratkaisu

This article explains why line breaks in a Rich Text Editor (RTE) merge field don't carry over to the text-only version of an email alert generated from a Salesforce Classic HTML email template in Lightning Experience, and provides a workaround.

Example of the Issue

For example, imagine that you use a Salesforce Classic HTML email template to generate an email alert. Say that the Rich Text Editor (RTE) merge field holds this value:

TEST

TEST

TEST

TEST

The email alert, which is text-only, shows "TESTTESTTESTTEST", without including the line breaks.

Workaround

In the RTE field, press Enter twice to designate separate paragraphs. Using the previous example, you would enter this as the value for the field:

TEST

 

TEST

 

TEST

 

TEST

Knowledge-artikkelin numero

000380940

 
Ladataan
Salesforce Help | Article