Skip to main content

Notifications

Power Apps - Building 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.

  • bachthang309 Profile Picture
    bachthang309 on at
    Re: Export Form Filter

    Many thanks!

  • Verified answer
    mmbr1606 Profile Picture
    mmbr1606 10,450 on at
    Re: Export Form Filter
    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
    bachthang309 on at
    Re: Export Form Filter

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

  • mmbr1606 Profile Picture
    mmbr1606 10,450 on at
    Re: Export Form Filter

    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard