web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combobox - show direct...
Power Apps
Unanswered

Combobox - show direct reports for current user

(0) ShareShare
ReportReport
Posted on by 83

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. 

Categories:
I have the same question (0)
  • Verified answer
    v-albai-msft Profile Picture
    on at

    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

  • 12strikes Profile Picture
    83 on at

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

  • v-albai-msft Profile Picture
    on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard