cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Microsoft Flow Approval create a new line by replacing string from a value

Can I make a format by using a string from a value

 

for example:
value1 = Departure: 01/01/2019 Arrival: 01/01/2019 From: New Jersey To: Los Angeles, Departure: 01/01/2019 Arrival: 01/01/2019 From: New Jersey To: Los Angeles, Departure: 01/01/2019 Arrival: 01/01/2019 From: New Jersey To: Los Angeles,

Result:
something like this replace(value1,',', '*') \\ this formula doesnt work at all.

Departure: 01/01/2019 Arrival: 01/01/2019 From: New Jersey To: Los Angeles

Departure: 01/01/2019 Arrival: 01/01/2019 From: New Jersey To: Los Angeles

Departure: 01/01/2019 Arrival: 01/01/2019 From: New Jersey To: Los Angeles

Above is something I wish to produce to approval mail body.
I already used all markdown syntax but no luck.

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

solution found by referring to another post: https://powerusers.microsoft.com/t5/Building-Flows/CRLF-in-quot-Create-File-quot/m-p/166983/highligh...

 

Thanks to saikumar.

1. Build a new variable(supposedly named "CRLF") using action "Initialiaze Variable"

2. Set the type of this variable as "String"

3. In the value field just place the cursor in it and hit the enter key(Return key).

View solution in original post

4 REPLIES 4
LeeHarris
Solution Sage
Solution Sage

Hi @Anonymous 

 

What action are you using to send your approval? If you are using the Send Email with Options action then you can, in the advanced properties, set it to use HTML. You just need to then change your replace expression to 

replace(value1,',', '</br>')

 


Did I answer your question? Mark my post as a solution!

Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

Anonymous
Not applicable

Hello @LeeHarris ,

I am using Approval Action which uses a markdown syntax instead of HTML on its body.

Though this is not the answer I am looking for, but for sure your solution would have worked if syntax is HTML.

Thanks for your response though.

Anonymous
Not applicable

solution found by referring to another post: https://powerusers.microsoft.com/t5/Building-Flows/CRLF-in-quot-Create-File-quot/m-p/166983/highligh...

 

Thanks to saikumar.

1. Build a new variable(supposedly named "CRLF") using action "Initialiaze Variable"

2. Set the type of this variable as "String"

3. In the value field just place the cursor in it and hit the enter key(Return key).

I know this is an old thread, but I'm having the same problem and this solution isn't working for me.  Does anyone know if this method has been disabled and if there's a new way of accomplishing this?

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,688)