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

Community site session details

Session Id : uhizdBQLn3+eYNR0MuiDVz
Power Automate - Building Flows
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 12 Jan 2023 18:29:45 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

 

I have the same question (0)
  • v-chengfen-msft Profile Picture
    on 17 Jan 2023 at 07:15:11
    Re: Multi Person Column in HTML Table with line break after Display Name

    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

  • GB-23071442-0 Profile Picture
    on 13 Jan 2023 at 18:58:14
    Re: Multi Person Column in HTML Table with line break after Display Name

    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
    on 13 Jan 2023 at 03:04:48
    Re: Multi Person Column in HTML Table with line break after Display Name

    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

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 736 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 396 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 339

Last 30 days Overall leaderboard
Loading complete