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
MichaelBurtonMichaelBurton 

Using BR() in text formula in visual flow - BR_Encoded

Is there anyway to create a line break using a text formula that references variables in a visual flow.  I can't get BR() to work.  All it does is display BR_ENCODED.  
ShashankShashank (Salesforce Developers) 
This has been identified as an issue by Salesforce R&D and they are working on a fix for it. i'm afraid there are no timelines available for now.
SalesforceYodaSalesforceYoda
Michael,
I have been able to get around this by making a Text Template with one single carriage return in it, then calling that Text Template in the Formula. It may take two carriage returns in the Text Template to get desired line spacing.
ChanmanderChanmander
SalesforceYoda,

Can you detail your workaround and explain exactky what carriage return character(s) you used in the Text Template? I've been having the same issue, and I have tried several methods and they still show as literal. Thanks!
SalesforceYodaSalesforceYoda
Went back to double-check my Text Template. You'll have to click the little T-box icon on the right edge of the Text Template creation window to shift to HTML Mode. Then, it looks like I actually put in two carriage returns (hit enter twice); one carriage return doesn't seem to do the trick, but two will actually force the line break successfully.
Daniel Camp 15Daniel Camp 15
This doesn't work... With a Text Template the result is HTML code, and with a formuls using BR() it returns _BR_ENCODING_

There has to be a simple fix.  How else do you create the text with variables for an email in a Flow using an EmailSend element?

Anyone???
Jodi Nemser-AbrahamsJodi Nemser-Abrahams
This is listed in the Known Issues with a status of "in review": https://success.salesforce.com/issues_view?id=a1p300000008YkZAAU
Benjamin BrombergBenjamin Bromberg
FYI - found this workaround that worked perfectly for me: https://explorationsintosalesforce.wordpress.com/2015/12/01/saving-line-breaks-to-text-fields/comment-page-1/#comment-350

tl;dr use a Text Template with a single character repeated on two lines, then use SUBSTITUTE() to insert the Text Template with the character being replaced with ""
Lakshan Weeraratne 2Lakshan Weeraratne 2
Add a Text Template with 2 "~" above each other
Use substitute() for the text template for the spaces you want.
Jack LinsteadJack Linstead

FIX Coming Summer 19!! >>

https://success.salesforce.com/issues_view?id=a1p300000008YkZAAU