cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
v-bacao-msft
Community Support
Community Support

 

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
v-bacao-msft
Community Support
Community Support

 

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.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,746)