Hi everyone,
I'm struggling with collecting direct and indirect reports without using the Office 365 connector (I have a solution with it in place but the performance is bad when collecting multiple levels).
I do have a master collection (MergedPDC) with all employees (column name: 'Employee Name') and their supervisor (column name: 'Supervisor Name') and their email address (column name: 'Email') . I want to collect all indirect reports of the current user of the app to show up in a gallery.
1.) Collect direct reports of the current user (testemail) -> working fine
ClearCollect(
DirectReports,
Filter(MergedPDC,'Supervisor Name'=LookUp(MergedPDC,Email=testemail).'Employee Name')
2.) collect all direct report of every direct report of step 1 -> here I'm struggling
ForAll(
DirectReports,
Collect(
InDirectReports,
Filter(MergedPDC,'Supervisor Name'....
I want to filter all employees in the master collection with ,'Supervisor Name' = directreports.'Employee Name'
I am grateful for any advice!