web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to print a row wit...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    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,

  • Sidhant_02 Profile Picture
    986 on at

    Hi @v-bacao-msft ,
    The Table name is: Table2
    I had a similar requirement maybe you can help me with this.
    The scenario was as follows: I have an excel file which looks like this

    Sidhant_02_0-1702015314838.pngSidhant_02_1-1702015346243.png

    In Power Apps using the attachments control I am uploading this excel file and then using Power Automate I am storing this data in a SharePoint List named RegisterationData

    Sidhant_02_2-1702015423679.png

    The only issue that I am facing the new line character is getting discarded like EmployeeId:14567 has 2 qualifications associated with them BTech, HSC (similarly for instituteName, GradeType,PrimarySkills) but only the first row value is getting stored, so using the expression that you have mentioned above (as it was for the entire table in my case the table is divided into columns how can I use the expression in my flow for these columns that can multiple values separated on a new row)

     My flow is as follows:

    Sidhant_02_3-1702015728762.png

    Did add the variable as you suggested:

    Sidhant_02_4-1702015793498.png

    Sidhant_02_5-1702016421477.png

    So initially this is the flow how it looks where in I have mapped the values directly from list rows action (and once set I have changed the file properties to be dynamic as you can see in the initial images using expressions)

    If I want to consider the new line values how to add them for the respective object
    Like EmployeeId: 14567 should only have 2 qualifications stored with them which is BTECH, HSC (and the next qualification BCom should be associated with the EmployeeID: 2315 not the previous one - I guess this is taken care by Apply_to_each as it is correctly associated)

    Please let me know how to proceed, if you need more information I have posted my query in Power Apps forum as well the link to which is: Query 

    Hope to get your reply

    Regards,
    Sidhant.

  • Sidhant_02 Profile Picture
    986 on at

    Hi @v-bacao-msft ,
    I did try to use your expression in the create item fields so I am able to get the values as shown in excel

    Sidhant_02_6-1702022361805.png

    (Just for the dates column added this expression: if(empty(items('Apply_to_each')?['StartDate']),null,items('Apply_to_each')?['StartDate'])
    And now I am getting the values as shown in excel.
    Now in gallery I want to show the records based on the representation like the Employee ID:  14567 has 2 qualifications (that includes qualification name, institute name, grade system) projects (Project name, Description, start date, end date, Role, Client name)

    Sidhant_02_0-1702022927622.png

    So currently the new row is treated as new value itself instead I want it to be associated with the previous record and only create a new record when the first two fields are filled in like Id, email)

    If you have any idea on how to proceed do let me know,

    Regards,
    Sidhant

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard