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 Apps / Extracting the Display...
Power Apps
Answered

Extracting the Display Name for a Json text/string value...from a Multiple Person Column

(0) ShareShare
ReportReport
Posted on by 219
ForAll(
 GalRequests.AllItems,
 Collect(
 itemsForCsv,
 {
 ID: ThisRecord.ID,
 Contacts: ThisRecord.Contacts.DisplayName
 }
 )
);

 

I am creating a collection that I will convert to JSON for a user to be able to Export to a CSV (using Flow). 

My question is that ThisRecord.Contacts is a multiple person column in SP.

In my ForAll (which is looping through my Gallery Items) I need to produce a "Contacts:" object containing the DisplayNames of each person but stored as a single string. Just not sure how to do this syntax.

So hence the result would be etc....
"Contacts": "Batman, Mickey Mouse, Freddie Mercury" 


Categories:
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Try:

    Contacts: Concat(ThisRecord.Contacts.DisplayName,", ")

    Hope that helps,

    Bryan

  • Verified answer
    sasrsc1966 Profile Picture
    219 on at

    Thank you @BCLS776 .. that got me headed in the right direction... 

    The correct answer was ...

    Contacts: Concat(ThisRecord.Contacts.DisplayName,DisplayName,", "),



    and here it is in the entire onSelect property...

    ForAll(
     GalRequests.AllItems,
     Collect(
     itemsForCsv,
     {
     ID: ThisRecord.ID,
     Title: ThisRecord.Title,
     Status: ThisRecord.Status,
     Contacts: Concat(ThisRecord.Contacts.DisplayName,DisplayName,", "),
     DateTimeUTC: ThisRecord.'Air Date Time',
     WebinarDateTime: Text(DateTimeValue(ThisRecord.'Air Date Time'),DateTimeFormat.ShortDateTime),
     WebinarDate: Text(DateTimeValue(ThisRecord.'Air Date Time'),DateTimeFormat.ShortDate),
     Duration: ThisRecord.Duration,
     Sector: ThisRecord.'Sector Target',
     'Key Focus': ThisRecord.'Key Focus',
     Format: ThisRecord.'Format Options',
     CreatedBy: ThisRecord.'Created By'.DisplayName,
     ModifiedBy: ThisRecord.'Modified By'.DisplayName,
     Created: ThisRecord.Created,
     Modified: ThisRecord.Modified
    
    
     }
     )
    );
    Notify(
     "An Excel file is being created. It will save on your OneDrive location",
     NotificationType.Information,
     3000
    );
    Set(
     fileOpen,
     ExportToExcel.Run(
     JSON(
     itemsForCsv,
     JSONFormat.IncludeBinaryData & JSONFormat.IgnoreUnsupportedTypes
     ),
     "Webinars"
     ).filelink
    );
    Launch(fileOpen);
    Clear(itemsForCsv);

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard