cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Charlon_
Level: Powered On

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
Highlighted
Charlon_
Level: Powered On

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

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

3 REPLIES 3
Super User
Super User

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

Hi @Charlon_ 

 

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!

Proud to be a Flownaut!


Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

Charlon_
Level: Powered On

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

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.

Highlighted
Charlon_
Level: Powered On

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

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

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (5,701)