Hi,
I'd like to know how to only show people under two departments for selection in the people picker comobox box not the whole company.
How can I do this?
Thanks!

Hi,
I'd like to know how to only show people under two departments for selection in the people picker comobox box not the whole company.
How can I do this?
Thanks!
Hi @usaman45 ,
Please try:
ForAll(
Filter(
Office365Users.SearchUser({top:999}),
Department in ["Dep1","Dep2"]
),
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Department: "",
Claims: "i:0#.f|membership|" & Mail,
DisplayName: DisplayName,
Email: Mail,
JobTitle: "",
Picture: ""
}
)
Best Regards,
Bof