I have three dropdowns on the a form.
Current Director, Current Manager, Current Prime.
First dropdown is populated with a collection named listDirectors. The contents are populated within the OnVisible property of the screen where they're needed.
Second dropdown is populated using a clause I'll share below that needs modifying.
Third dropdown is populated using exactly the same clause as the 2nd but references dropdown 2.
As is, it works. But because some of the people returned in the second dropdown do not have direct reports, dropdown 3 errors. Which is just a symptom really.
The problem is that we need to filter the second dropdown to only return users with direct reports themselves.
The current clause populating the 2nd dropdown is below. How do I filter this list to only include users with direct reports?
Ungroup(
ForAll(
Office365Users.DirectReportsV2(drpProposedDirector.Selected.Email).value,
Table(
[
{
Claims: "i:0#.f|membership|" & mail,
Department: "",
DisplayName: displayName,
Email: mail,
JobTitle: "",
Picture: ""
}
]
)
),
Value
)