"r8fe775j37fy592bbbcbe7fb9a0c0e8ad": "test\ntest\ntest",
I initialize a variable named varFormData where I have elements like this...
What is the issue Priority?
@{variables('varTicketPriority')}
Who is affected by this issue?
@{variables('varAffected')}
Detailed problem description:
@{body('Get_response_details')?['r8fe775j37fy592bbbcbe7fb9a0c0e8ad']}
I then create an email and add the body like this...
Form Data:
@{variables('varFormData')}
When the email is sent, the body of text related to the question with the multiline input is:
Detailed problem description:
test test test
I have tried several approaches to getting the lines of text to show on separate lines in the email, but I am unsuccessful. I have tried the following...
I created a variable named varComposedFormData as a string with no default value
I created a Compose action with the following function in it...
replace(variables('varFormData'), '\n', '<br>')
The raw input includes:
Detailed problem description:<br>\ntest\ntest\ntest
The raw output includes: Detailed problem description:<br>\ntest\ntest\ntest
I then use a set variableaction, setting the variable varComposedFormData to the output of the Compose action.
The raw input includes:
Detailed problem description:<br>\ntest\ntest\ntest
The raw output includes: Detailed problem description:<br>\ntest\ntest\ntest
As you can see, the \n are not getting changed to <br> at all.
I have also tried the following in the Compose function
replace(variables('varFormData'), newline(), '<br>')
replace(body('Get_response_details')?['r8fe775j37fy592bbbcbe7fb9a0c0e8ad'],decodeUriComponent('%0D'),'<br>')
Nothing works for me so far. Does anyone know how I can convert the \n to <br> so that my emails will be formatted preserving the multiline input