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

How to print a row with new line character from excel to teams

Hi, 

 

I have a table in microsoft excel which generates a string in the output table in A15 cell, this piece of string contains a new line character ie char(10).

image.png

 

Now I have created a flow which reads this table and post it on one of my channel on teams, the problem is that the the new line character is totally getting discarded in the process and the entire string comes as one line in the messege, Is there any fix to this issue. 

I have added my flow below

image.png

 

 

This is how I get the Output using flow:image.png

 

 

but this is what I really want:image.png

 

I looked at the output of the test run but everything looks fine in here and I am unable to pin down the issue

image.png

 

Any suggestion or help guys..

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: How to print a row with new line character from excel to teams

 

Hi @Anonymous ,

 

Please try to use this method.

  • Initialize a string variable and hit the Enter key in Value.
  • Then use the replace() function to replace the carriage return in Output with <br>.

Expression reference:

replace(item()['Output'],variables('Enter'),'<br>')

Image reference:

60.PNG61.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: How to print a row with new line character from excel to teams

 

Hi @Anonymous ,

 

Please try to use this method.

  • Initialize a string variable and hit the Enter key in Value.
  • Then use the replace() function to replace the carriage return in Output with <br>.

Expression reference:

replace(item()['Output'],variables('Enter'),'<br>')

Image reference:

60.PNG61.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (3,171)