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.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,240)