Hi I am using the sendEmail from the flow sample pack to send an email under specific conditions. This is working. How ever the email content is not keeping the linebreaks as entered by the user during flow runtime.
I am using a long text area to enter the note.
Thanks in advance Barry
The Apex class creates a string called body from data passed by the flow as follows:
String body = (String) request.inputParameters.get('body');
and uses it in a sendEmail method as follows:
message.setHtmlBody(body != null ? body : ''); // If the body is empty, use an empty string