
Announcements
Hi,
I'm using a modern text input control to send text to Power Automate for email processing.
The text is sent as a single paragraph, but I need to allow the user to type enter and split the text in multiple paragraphs:
How to achieve this?
Hi @WebPortal
Here is the sample flow.
1. Create an instant cloud flow and choose the trigger as Power apps V2:
Add an input string variable that contains the email body from canvas app:
Next, add "send an email" action and use expression to replace line break with <br> in the email body. Expression needs to be entered in the expression box as shown below:
replace(triggerBody()['text'],decodeUriComponent('%0A'),'<br>')
I have saved the flow as 'Send an email'.
You could call this flow from the canvas app as shown below:
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Thanks