How to modify the text after capturing it in the comments section in Approval, to send it by email in a format with spaces between lines and so that it can be read better.
First, ensure the comments from the approval action are stored in a variable or directly captured in the flow.
Use the replace() expression to add proper line breaks that will render in the email. In Power Automate, emails (like those sent via Outlook) use HTML formatting. You need to replace new lines (\n or carriage returns) in the text with <br> tags.
Here’s the expression:
replace(variables('Comments'), '\n', '<br>')
Finally, replace variables('Comments') with the variable or dynamic content holding the approval comments.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.