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 Platform Community / Forums / Power Apps / Getting records create...
Power Apps
Answered

Getting records created by a Direct Report

(0) ShareShare
ReportReport
Posted on by 73

Hello, 

I am looking to get help on how to show records in a gallery that were created from a Direct Report. Right now, I have the formula built out where gallery is showing records that were created by the user, or were created by the manager. but when I try to add Or Office365Users.DirectReportsV2(_myProfile.mail).value, it doesn't work. Any ideas on how to do this?

 

Search(
 Filter(
 'RAIL List',
 'Created By'.Email = _myProfile.mail Or 'Created By'.Email = Office365Users.ManagerV2(_myProfile.mail).mail,
 Progress.Value = "WIP"
 ),
 SearchBox.Text,
 "Title",
 "Customer"
)

 

 

 

2020-04-28 21_51_16-Window.png
Categories:
  • eka24 Profile Picture
    20,925 on at

    Check this post which deals with it:
    https://powerusers.microsoft.com/t5/Building-Power-Apps/Display-a-User-s-Direct-Reports-Using-an-Email-Address/m-p/486117

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @imadorkous ,

     

    Office365Users.DirectReportsV2 function return a table contains all direct report members.

    If there is only one direct report or you just want to show the specific one, please try this:

    Search(
     Filter(
     'RAIL List',
     'Created By'.Email = _myProfile.mail Or 'Created By'.Email = Office365Users.ManagerV2(_myProfile.mail).mail Or 'Created By'.Email = First(Office365Users.DirectReportsV2(_myProfile.mail).value).mail,
     Progress.Value = "WIP"
     ),
     SearchBox.Text,
     "Title",
     "Customer"
    )

    If you want to show all direct report, please try this:

    Search(
     Filter(
     'RAIL List',
     'Created By'.Email = _myProfile.mail Or 'Created By'.Email = Office365Users.ManagerV2(_myProfile.mail).mail Or 'Created By'.Email in Office365Users.DirectReportsV2(_myProfile.mail).value.mail,
     Progress.Value = "WIP"
     ),
     SearchBox.Text,
     "Title",
     "Customer"
    )

    Hope this helps.

    Sik

  • imadorkous Profile Picture
    73 on at

    Yup, i was looking for when there are multiple direct reports, it returns all of them; so the bottom formula works. Thank you!

  • imadorkous Profile Picture
    73 on at

    Hi @v-siky-msft, 

    I just learned about delegation warnings today, and I dont want to run into this issue, so I am taking off the search function, but looks like the IN operator would still cause some heartburn. Would there be a way around this? 

    'Created By'.Email in Office365Users.DirectReportsV2(_myProfile.mail).value.mail

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard