I have "Start and Wait for an Approval" action in my flow where am mentioning my Multiple lines of text SharePoint column in details section. I have used below expression and it doesnt work. The output is \n is replaced with <br> tags everywhere.
replace(items('Apply_to_each')?['Procurement_x0020_Comments'],variables('EnterVariable'),'<br>')
Now when I used the same expression under Send an Email (V2) action it does work pretty well. How can I make it to work in Approval action.
Hi @RameshMukka
Documentation says put brackets and space so replace with that and see whether that works or not? Initially hardcode a value directly in flow approval message and see if that works or not? Then think about the expression you need to use.
Thanks
@abm I am only using multiple lines text field from SharePoint list column. Do you think replacing variables('Enter Variable') with (space) within replace function help here? Also does (space) has '' (single quotes) around it?
Hi @RameshMukka
I haven't tested this but try this
This is line 1.(space)
Now text will appear on the next line.
Result:
This is line 1.
Now text will appear on the next line.
See the reference:
https://docs.microsoft.com/en-us/power-automate/approvals-markdown-support
@abm I actually did it. Its working in send an email action but not in Approval action.
Hi @RameshMukka
Thanks for the screen shot. Please do the following:
1. Under the enter key variable value press the Enter Key
2. Replace the tag with enter key value.
Thanks
Here is the screenshot. I have used a variable called "Enter Variable" to store Enter key value and replacing it with <br> using the expression i mentioned. Just that it is not being converted to html in Approval action. Doesnt it understand HTML?
Hi @RameshMukka
So these line breaks are not appearing under approval action? Could you post a screenshot?
Thanks