
Announcements
Hi everyone,
I am trying to default multiple people to a people picker but am struggling. At the moment the code to default is as follows,
hi @NicolleAbraham ,
To default multiple people in a People Picker in PowerApps, you need to modify your formula to handle collections of people instead of single person references.
With(
{
wRecord: LookUp(
'Look-up Roles',
Title = "Project Manager Entity"
),
defaultPeople: Switch(
cb_LegalEntity.Selected.Title,
"Entity 1",
wRecord.'Entity 1',
"Entity 2",
wRecord.'Entity 2',
"Entity 3",
wRecord.'Entity 3',
"Entity 4",
wRecord.'Entity 4',
"Entity 5",
wRecord.'Entity 5',
"Entity 6",
wRecord.'Entity 6',
"Entity 7",
wRecord.'Entity 7',
"Entity 8",
wRecord.'Entity 8',
"Entity 9",
wRecord.'Entity 9'
)
},
ForAll(
Split(defaultPeople, ";"),
{
Claims: "i:0#.f|membership|" & Trim(Value),
DisplayName: Trim(Value),
Email: Trim(Value)
}
)
)