cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RajSaha_
Helper III
Helper III

In the dropdown I want see all the only manager and senior manager under me who is reporting to me directly or indirectly

In the dropdown or combo box  I want see all the manager and senior manager under me .
and manger reporters 

RajSaha__0-1618900541552.png
I want to see Senior manager and manager direct and indirect reporters

I'm able to see all the direct repertories I don't want to see senior and client serving contractor   

RajSaha__1-1618900638778.png

 


 

 

15 REPLIES 15
RandyHayes
Super User III
Super User III

@RajSaha_ 

Skip the variables and collections and set your Items property of the dropdown to the following:

With({myEmail: User().Email, managerEmail: "othermanageremail"},
    Ungroup(
        Table(
            {Items: Office365Users.DirectReportsV2(myEmail).value},
            {Items: Office365Users.DirectReportsV2(managerEmail).value}
        ),
        "Items"
    )
) 

Set your display value of the dropdown to displayName.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes
RajSaha_
Helper III
Helper III

in the button I'm collecting the collection 

RajSaha__0-1618927998133.png

but in the drop down what function I need to write ?

RandyHayes
Super User III
Super User III

@RajSaha_ 

This formula in the Items property:

With({myEmail: User().Email, managerEmail: "othermanageremail"},
    Ungroup(
        Table(
            {Items: Office365Users.DirectReportsV2(myEmail).value},
            {Items: Office365Users.DirectReportsV2(managerEmail).value}
        ),
        "Items"
    )
) 
_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

the above function working fine 
Thank you So much for your efforts 
but small doubts still I'm able to senior and Client serving Contractor 

 

JR-BejeweledOne
Super User
Super User

Add your filter like this:

 

 

Filter(
  With({myEmail: User().Email, managerEmail: "othermanageremail"},
    Ungroup(
        Table(
            {Items: Office365Users.DirectReportsV2(myEmail).value},
            {Items: Office365Users.DirectReportsV2(managerEmail).value}
        ),
        "Items"
    )
 ), 
   !(jobTitle = "Senior") && !(jobTitle = "Client Serving Contractor")
)

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

View solution in original post

@JR-BejeweledOne @RandyHayes Thank you so much for your support ...Now its working fine

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (76,486)