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 / Concat ForAll Multiple...
Power Apps
Unanswered

Concat ForAll Multiple Multi-Select People Picker Fields, Getting DisplayName, Email, Department, and JobTitle

(0) ShareShare
ReportReport
Posted on by 95

Hello!

I have quite the challenge here... I have a PowerApp with several people-picker fields that I need to concatenate into a string that includes selected users' DisplayName, Email, Department, and JobTitle. I'm running a PowerAutomate flow through the app that needs JSON formatted data. The data needs to be formatted as follows:

 

"Insiders": [

 {

 "Department": "SYS RF Central Detection Services Abuse",

 "Email": **********@***,

 "Name": **********,

 "Role": "Deal Captain"

 },

 {

 "Department": "SYS RF Central Detection Services Abuse",

 "Email": *********@***,

 "Name": ******,

 "Role": "Deal Captain"

 }

 ],

 

 

I need this for each person selected in each field. There are 5 fields total, 3 of which allow for multiple selections. So, for each field, I need each person's info, formatted as shown above. 

 

Right now, I have this, and it only pulls in the first field, not the remaining 4.

 

 Concat(
 dcNonMADealTeamMembers.SelectedItems,
 Concatenate(
 Text(DisplayName),
 "; ",
 Text(Email),
 "; ",
 Text(JobTitle),
 "; ",
 Text(Department)
 ) & Concat(
 dcMADealTeamMembers.SelectedItems,
 Concatenate(
 Text(DisplayName),
 "; ",
 Text(Email),
 "; ",
 Text(JobTitle),
 "; ",
 Text(Department)
 ) & Concat(
 dcDealCaptain.SelectedItems,
 Concatenate(
 Text(DisplayName),
 "; ",
 Text(Email),
 "; ",
 Text(JobTitle),
 "; ",
 Text(Department)
 ) & Concat(
 dcOriginatingBankers.SelectedItems,
 Concatenate(
 Text(DisplayName),
 "; ",
 Text(Email),
 "; ",
 Text(JobTitle),
 "; ",
 Text(Department)
 ) & dcLeadCoverageBanker.Selected.DisplayName & "; " & dcLeadCoverageBanker.Selected.Email & "; " & dcLeadCoverageBanker.Selected.JobTitle & "; " & dcLeadCoverageBanker.Selected.Department
 )
 )
 )
 )

 

 

Any help would be greatly appreciated, thank you!

Categories:
I have the same question (0)
  • Meekou Profile Picture
    on at

    For your requirement, you could try something below which get specific column, and rename the columns based on your output, and then serialize the output to json format.

    ClearCollect(
     UserDetails,
     dcMADealTeamMembers.SelectedItems,
     dcNonMADealTeamMembers.SelectedItems
    );
    ClearCollect(
     UserDetailsSmall,
     RenameColumns(
     ShowColumns(
     UserDetails,
     Department,
     Mail,
     DisplayName,
     JobTitle
     ),
     Mail,
     Email,
     DisplayName,
     Name,
     JobTitle,
     Role
     )
    );
    Set(
     Result,
     JSON({Insiders: UserDetailsSmall})
    );

    Best Regards,

    Meekou

    YouTube

    PowerApps

    PowerAutomate

  • cjwilson80 Profile Picture
    95 on at

    Hi @Meekou 

     

    Thanks for the help! I tried the code you suggested, but in the Power Automate Flow, where I need the user data, it just shows "true". The details are missing... What should I do?

     

    Here is my code in the PowerApp:

     ClearCollect(
     colInsiders,
     dcMADealTeamMembers.SelectedItems,
     dcNonMADealTeamMembers.SelectedItems,
     dcOriginatingBankers.SelectedItems,
     dcDealCaptain.Selected.Email,
     dcLeadCoverageBanker.Selected.Email
     );
     ClearCollect(
     colInsidersDetails,
     RenameColumns(
     ShowColumns(
     colInsiders,
     Department,
     Email,
     DisplayName,
     JobTitle
     ),
     Department,
     Mail,
     DisplayName,
     Title
     )
     );
     Set(
     Result,
     JSON({Insiders: colInsidersDetails})
     ),

     

    Here is the output in the Compose action in Power Automate:

     

    Insiders.png

  • Meekou Profile Picture
    on at

    How did you call flow from powerapps?


    Best Regards,

    Meekou

    YouTube

    PowerApps

    PowerAutomate

  • cjwilson80 Profile Picture
    95 on at

    Hi @Meekou ,

     

    I have a buttron in my PowerApp that has the following code OnSelect: I have a PowerAutomate flow called "MA_API_Connection" and the button, when clicked, does the RUN() function See below:

    MA_API_Connection.Run(
     dcProposedBy.Selected.Email,
     dcProposedBy.Selected.Department,
     dcProjectCodeName.Text,
     "N/A",
     dcClientName.Text,
     dcPossibleConflicts.Text,
     dcTransactionDescription.Text,
     DateValue(dcDateValue.SelectedDate),
     dcDealType.Selected.Value & ", " & dcClientName.Text,
     dcNameCompanies.Text,
     "Mergers & Acquisition",
     ClearCollect(
     colInsiders,
     dcMADealTeamMembers.SelectedItems,
     dcNonMADealTeamMembers.SelectedItems,
     dcOriginatingBankers.SelectedItems,
     dcDealCaptain.Selected.Email,
     dcLeadCoverageBanker.Selected.Email
     );
     ClearCollect(
     colInsidersDetails,
     RenameColumns(
     ShowColumns(
     colInsiders,
     Department,
     Email,
     DisplayName,
     JobTitle
     ),
     Department,
     Mail,
     DisplayName,
     Title
     )
     );
     Set(
     Result,
     JSON([{Insiders: colInsidersDetails}])
     ),
     "NL Global",
     varFormID,
     If(
     dcExclucivityWider.Selected.Value = "Yes",
     true,
     false
     ),
     If(
     dcStandStill.Selected.Value = "Yes",
     true,
     false
     )
    );

     

    The flow runs successfully, but the "Insiders" value is just "true", it does not contain any of the user information required. See below:

    Insiders.png

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard