I'm trying to to build a contact list where a user can select a site, and powerapps displays all of the managers direct reports, and then the direct reports of all those users.
I'm having a problem where lots of disabled users are showing so have tried to add some filters.
For some reason the second table created in the forAll has 6 blank rows?
ClearCollect(
colMyDirectReports,
Office365Users.DirectReportsV2(First(Manager3).Mail).value
);
ClearCollect(
colMyDirectReportsEnabled,
Filter(
colMyDirectReports,
accountEnabled = true
)
);
ForAll(
colMyDirectReportsEnabled,
Collect(
colMyDirectReports2,
Office365Users.DirectReportsV2(mail).value
)
);