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 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,605 Super User 2025 Season 2 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,605 Super User 2025 Season 2 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

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 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard