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!