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 / Office365Users.DirectR...
Power Apps
Unanswered

Office365Users.DirectReportsV2 failed error when launching app

(0) ShareShare
ReportReport
Posted on by 2

I'm getting the below error when launching my powerapp:

Office365Users.DirectReportsV2 failed: The method 'DirectReportsV2' has an invalid value for parameter 'id'

 

We do have this set in the OnStart parameter for the app itself.

ClearCollect(
colMyDirectReports,
Office365Users.DirectReportsV2(UserEmail).value
);

 

What could we do to remediate this error?  If you need more information on this, please let me know.

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @jstlouis1980 ,

     

    Please try:

     

    ClearCollect(
    colMyDirectReports,
    Office365Users.DirectReportsV2(User().Email).value
    );

     

    Best Regards,

    Bof

  • jstlouis1980 Profile Picture
    2 on at

    This didn't resolve the error unfortunately.

  • WarrenBelz Profile Picture
    156,926 Most Valuable Professional on at

    @jstlouis1980 ,

    I just ran it here with my manager and it worked perfectly and collected all the relevant staff

    ClearCollect(
     colDirectReports,
     Office365Users.DirectReportsV2("Manager.Name@MyCompany.com.au").value
    )

    Where are you actually getting the error - try running it on a button.

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard