cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Direct Reports and Indirect/ Subordinates in powerapps

I am trying to build out the Shoutout Application for an upper manager to see analystics on their Indirect Reports or subordinates. So for example: I would be a direct report under my boss and my direct reports would be indrect reports for my boss.

 

Right now my application just pulls in DirectReports but I would want to take it a level deeper so a manager can view the details of the subordinates underthem. 

 

Has anyone been able to pull this?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Direct Reports and Indirect/ Subordinates in powerapps

Hi @cma2438,

Do you want to get the Indirect/ Subordinates (the direct reports of the direct reports) of a manager within your app?

If you want to get the Indirect/ Subordinates (the direct reports of the direct reports) of a manager within your app, I have made a test on my side, please take a try with the following workaround:2.JPG

 

3.JPG

Set the OnSelect property of the "Direct Reports" button to following:

 

ClearCollect(
DirectReports,
Office365Users.DirectReports("Michael@xxxxxx.xxmicrosoft.com") /* Michael@xxxxxx.xxmicrosoft.com is a manager email*/
)

 

On your side, you should type:

 

ClearCollect(
DirectReports,
Office365Users.DirectReports("YourManagerEmail")
)

 

Set the OnSelect proeprty of the "InDirect Reports" button to following:

Clear(InDirectReports);
ForAll(
DirectReports,
Collect(InDirectReports, Office365Users.DirectReports(Mail))
)

The InDirectReports shows well as below (display it using Data Table control):4.JPG

 

In addition, you could also take a try with the following workaround:

Set the OnSelect property of the "InDirect Reports" button to following:

Clear(InDirectReports);
ForAll(
Office365Users.DirectReports("YourManagerEmail"),
Collect(InDirectReports, Office365Users.DirectReports(Mail))
)

Set the Items property of the Data Table control to following:

InDirectReports

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Direct Reports and Indirect/ Subordinates in powerapps

Hi @cma2438,

Do you want to get the Indirect/ Subordinates (the direct reports of the direct reports) of a manager within your app?

If you want to get the Indirect/ Subordinates (the direct reports of the direct reports) of a manager within your app, I have made a test on my side, please take a try with the following workaround:2.JPG

 

3.JPG

Set the OnSelect property of the "Direct Reports" button to following:

 

ClearCollect(
DirectReports,
Office365Users.DirectReports("Michael@xxxxxx.xxmicrosoft.com") /* Michael@xxxxxx.xxmicrosoft.com is a manager email*/
)

 

On your side, you should type:

 

ClearCollect(
DirectReports,
Office365Users.DirectReports("YourManagerEmail")
)

 

Set the OnSelect proeprty of the "InDirect Reports" button to following:

Clear(InDirectReports);
ForAll(
DirectReports,
Collect(InDirectReports, Office365Users.DirectReports(Mail))
)

The InDirectReports shows well as below (display it using Data Table control):4.JPG

 

In addition, you could also take a try with the following workaround:

Set the OnSelect property of the "InDirect Reports" button to following:

Clear(InDirectReports);
ForAll(
Office365Users.DirectReports("YourManagerEmail"),
Collect(InDirectReports, Office365Users.DirectReports(Mail))
)

Set the Items property of the Data Table control to following:

InDirectReports

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Helper II
Helper II

Re: Direct Reports and Indirect/ Subordinates in powerapps

Yes, this worked! This actually made it easier for me to test my app as well as I dont have indirect reports. 

 

Thank you!

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,401)