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 add line break ...
Power Automate
Answered

How to add line break in a compose table

(0) ShareShare
ReportReport
Posted on by 46

Hi all,

I have tried to find a solution for this issue that I am facing, but unfortunately I have not been able to find anything that worked for me, so maybe you guys can help me with that.

 

I have a share point list, where names are stored in a single column (multiline text) and I want to have one line for each name showing in a table. 

Currently, this is how the names are showing in the table when I send it by email using the flow:

tiagomacsou_0-1669869433667.png

And below is my flow (only showing the table section):

tiagomacsou_1-1669869524223.png

 

Is there a way that I can add line breaks so the names can be listed like a column and not like a multiline text?

 

Thank you all!

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @tiagomacsou,

    You just need to replace the comma ',' with <br> as below:

    replace(body('Create_HTML_table'),',','<br>')
  • tiagomacsou Profile Picture
    46 on at

    Thank you a lot @v-qiaqi-msft. I could solve my issue.
    And you may be able to help me as well, I am trying to index every name in the table and below is what I am doing, but it`s not quite working:

    tiagomacsou_0-1669878292418.png

    tiagomacsou_1-1669878342215.png

    tiagomacsou_2-1669878383789.png

     

    And below is what I get based in the flow above:

    tiagomacsou_3-1669878444366.png

     

    Thank you again!

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @tiagomacsou ,

     

    Do you want to place each Name in the SharePoint table on a separate row in the Html table?
    I did a test for your reference.

    vdezhilimsft_0-1669878514272.png

     

    vdezhilimsft_1-1669878514273.png

     

    vdezhilimsft_2-1669878514274.png

     

    vdezhilimsft_3-1669878514274.png

     

    vdezhilimsft_4-1669878514275.png

     

    Best Regards,

    Dezhi

  • tiagomacsou Profile Picture
    46 on at

    Hi @v-dezhili-msft ,

    What I am after is to split the table in more than one line and have Index 1, 2 and etc for each name.

    tiagomacsou_0-1669880271191.png

     

  • Verified answer
    v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @tiagomacsou ,

     

    Do you need an index before each name?

    vdezhilimsft_0-1669882043274.png

     

    vdezhilimsft_1-1669882043275.png

     

    vdezhilimsft_2-1669882043275.png

     

    Best Regards,

    Dezhi

  • Verified answer
    tiagomacsou Profile Picture
    46 on at

    Thank you a lot @v-dezhili-msft 

    I have now fixed all my issues. 

    Cheers!

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard