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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Multi Person Column in...
Power Automate
Unanswered

Multi Person Column in HTML Table with line break after Display Name

(0) ShareShare
ReportReport
Posted on by

Good Afternoon All,

 

I'm using the following code from another post, for a multi-person name in a HTML table:

 

join(xpath(xml(json(concat('{"body":{"value":', item()?['PersonColumn'] , '}}'))), '/body/value/DisplayName/text()'), ', ')

 

With this code the name shows in the table, however its in the following format:

 

John Doe, Jane Doe

 

How do I modify the code so that it shows the name in the following format instead:

 

John Doe

Jane Doe

 

Any help you can provide would be greatly appreciated.

 

Thank You

 

Categories:
I have the same question (0)
  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @Gilby1986 ,

    Please add a compose, enter "Enter"

     

    Replace ',' with New line Compose

     

    join(xpath(xml(json(concat('{"body":{"value":', item()?['PersonColumn'],'}}'))), '/body/value/DisplayName/text()'), outputs('New_line'))

    vchengfenmsft_0-1673578731462.png

    Here is result:

    Here is list

    vchengfenmsft_2-1673579067709.png

    Here is html output:

     

    vchengfenmsft_1-1673579044734.png

     

     

    Best Regards

    Cheng Feng

     

  • GB-23071442-0 Profile Picture
    on at

    Hi @v-chengfen-msft ,

     

    Thank you for your response. I'm attempting to have the display name show in an HTML table that is being sent via email. I attempted to use the code provided but the names are still showing in one single line. Am I doing something wrong? Please see screenshot below:

     

    Gilby1986_0-1673636106362.png

     

    Gilby1986_3-1673636234069.png

     

     

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

    Hi @Gilby1986 ,

    Judging from your screenshot, you didn't use [Compose] to store newlines.

    You don't seem to be using the formula I provided, thanks

    Best Regards

    Cheng Feng

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard