cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
12strikes
Frequent Visitor

Combobox - show direct reports for current user

I have a gallery that has records entered by the current user and their direct reports.

I want to create a combo box that has the current users' name, and the names of their direct report.  I'm then going to use the combo box to farther filter the gallery.


So...I can't figure out how to populate a combo box with the user name and the names of all their direct reports....

help Please. 

1 ACCEPTED SOLUTION

Accepted Solutions
v-albai-msft
Community Support
Community Support

Hi @12strikes,

To populate a combo box with the current user name and the names of all their direct reports, you can create a collection using below formula(you can use below formula on OnSelect property of a button or on OnStart property of App):

 

ClearCollect(
             myTeam,
             {DisplayName: User().FullName},
             Filter(
                     Office365Users.DirectReports(User().Email),
                     AccountEnabled = true
             )
)

 

Here is the collection:

v-albai-msft_0-1619661059230.png

 

Then on your combo box, set its Items property to:

 

myTeam.DisplayName

 

 

v-albai-msft_1-1619661136203.png

 

Best regards,

Allen

View solution in original post

3 REPLIES 3
v-albai-msft
Community Support
Community Support

Hi @12strikes,

To populate a combo box with the current user name and the names of all their direct reports, you can create a collection using below formula(you can use below formula on OnSelect property of a button or on OnStart property of App):

 

ClearCollect(
             myTeam,
             {DisplayName: User().FullName},
             Filter(
                     Office365Users.DirectReports(User().Email),
                     AccountEnabled = true
             )
)

 

Here is the collection:

v-albai-msft_0-1619661059230.png

 

Then on your combo box, set its Items property to:

 

myTeam.DisplayName

 

 

v-albai-msft_1-1619661136203.png

 

Best regards,

Allen

View solution in original post

Thank you VERY MUCH!.... Worked exactly as I needed

Hi @12strikes ,

If my solution is helpful to you, please mark my answer as a solution. This will benefit other community members who stuck with the same question.

Thanks for your understanding.

Best regards,

Allen

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,739)