cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Frequent Visitor

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

4 REPLIES 4
Highlighted
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

Highlighted
Frequent Visitor

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
Frequent Visitor

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

Highlighted
Frequent Visitor

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Users online (6,702)