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

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:
I have the same question (0)
  • 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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard