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
MissyLewMissyLew 

BR_ENCODE appearing rather than BR() in field update output in standard Event Description field

I have a workflow with a field update where I am trying to populate the standard "Description" field on an Event record when it is created. Below is the formula for my field update:

"Employee: " & [Hours__c].Project_Assignment__c.Internal_Resource__c.FirstName & " " & [Hours__c].Project_Assignment__c.Internal_Resource__c.LastName &BR()
& "Location: " & [Hours__c].Location__c &BR()
&"Special Notes/Equipment: " & [Hours__c].Special_Notes_Equipment_Needed__c &BR()
&"Scheduled By: " & [Hours__c].Scheduled_By__c &BR()
&"Dates of all corresponding training sessions: " &[Hours__c].Dates_of_Corresponding_Training_Sessions__c &BR()
&"Cost/Notes on Related Charges: " & [Hours__c].Cost_Notes_on_Related_Charges__c &BR() 
&"Invoice Number: " & TEXT([Hours__c].Invoice_Number__c)&BR()
&[Hours__c].Hours_URL__c

When it outputs to the description field on the Event, it looks like this: 

Employee: Joe Brown_BR_ENCODED_Location: Testing Again_BR_ENCODED_Special Notes/Equipment: Testing_BR_ENCODED_Scheduled By: Test User_BR_ENCODED_Dates of all corresponding training sessions: Testing_BR_ENCODED_Cost/Notes on Related Charges: Testing_BR_ENCODED_Invoice Number: _BR_ENCODED_Click here to access the related hours record in Salesforce:https://xxx.salesforce.com/xxxxxxxxxxxxxxxxxxxxx

I saw posts on the forum that indicated this had been an issue prior to 2007 but in 2007, Salesforce made a change that resolved it. Can you please help?
Terence_ChiuTerence_Chiu
Are you by chance using Lightning process buider for this update ? I believe there is an issue with the BR function with processes and flows. I beleve it is related to the below known issue.

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

I suggest using a workflow rule and workflow field update instead to accomplish your goals.
MissyLewMissyLew
Thank you for your response Terence. I have tried it both ways-with Process Builder as well as workflow and field update (using the same formula posted) with the same result in both cases.