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

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard