Notifications
Announcements
On the other hand it works well and converts in new line, in PowerAutomate 'Send an email (V2)':
<br> is a new line in HTML and there are places where it will automatically convert to a new line character. But if you want to use it as part of a string in a parameter you pass to a flow it should be encoded using Char(10). Char(13) is a carriage return.
Then in Power Automate you can use EncodeURIComponent to get the same character
EncodeUriComponent('%0A')
It works in email because email bodies support HTML. Emails sent by Approvals don't and have to use a specific markdown language. Use markdown to format Power Automate approvals - Power Automate | Microsoft Learn
I have tried both of these syntaxes: Concat(ComboBox.SelectedItems,Value & Char(10) & "<br>") Concat(ComboBox.SelectedItems,Value & Char(10)) The first syntax converts it correctly in Apps and Send email, but not correctly in PowerAutomate 'Create an approval', it still displays the <br>
The second syntax only converts in a new line correctly in PowerAutomate 'Create an approval', and it doesn't get converted in new line in any of the other places (Apps, PowerAutomate 'Send an email (V2)' )
Any suggestion?
Try using a carriage return and new line.
Concat(ComboBox.SelectedItems,Value & Char(10) & Char(13))
As I mentioned, <br> won't work with Approvals since they don't recognize HTML formatting.
Hi @blabla70
As Pstork mentioned it won't work because email is an html format and approval use markup language. but that's not an issue for your work just use replace function to replace <br> in Approval action.
Hi developerAJ,it sounds like a good solution, but I am getting the error when trying the following function tin the Inialize variable action:
The error: "Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'Template language expression cannot be evaluated: the default fired trigger is not defined at current scope. '.'."
Is there any syntax error?Thanks in advance
@blabla70
use this
replace(triggerBody()['text_6'],'<br>','')
or
Initialize a variable(name: Text) and store triggerBody()['text_6'] .in that case use replace(variables('Text'),'<br>','')
Please click Accept as solution and Thumbs Up. if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
use initialise variable
name it as varnewline ;type string;
value field : just click enter so that cursor goes to new line
now use this variable as second argument of replace function in place of ‘’ single quotes
Thank you, it works fine!
Please mark this response as Solution
This is final formula:
replace(triggerBody()['text_6'],'<br>',variables('varnewline'))
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268