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).

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!


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).

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow 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 Flow Community Video Gallery!

Users Online
Currently online: 186 members 5,592 guests
Please welcome our newest community members: