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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Export Form Filter

(0) ShareShare
ReportReport
Posted on by

I plan to create a MS form to collect staff's information in some departments. How can I export an Excel file of employees below me? I mean, I am a manager and want to filter a list of employees in my department, not other departments. Will PowerApp allow me to do that? My company used office 365 and added all staff position.

Thanks in advance.

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,615 Super User 2026 Season 1 on at

    he @bachthang309 

     

    if you use the office365users connector in powerapps there is a Office365Users.DirectReportsV2 function.

    So yes, technically there is a way to do this

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • bachthang309 Profile Picture
    on at

    Could you please instruct me use which action for each step? a picture is a good idea in this case.

  • Verified answer
    mmbr1606 Profile Picture
    14,615 Super User 2026 Season 1 on at
    1. go to the datasource tab on the left hand side of your power aps studio
    2. search for office365users connector and connect it
    3. Put this code in your onvisible of first screen of your app
    ClearCollect(Employees, Office365Users.DirectReportsV2(User().Email).value);

     

    1. Insert a gallery and set the item property to Employees (which is your collection)
    2. It should show you all direct reports in that gallery

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • bachthang309 Profile Picture
    on at

    Many thanks!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard