Share via

Converting code from Office365users.directreports to Office365users.directreportsv2

Anonymous
2025-02-12T17:19:15+00:00

Office365Users.DirectReports is now deprecated. I need to convert it to Office365Users.DirectReportsV2; however, I can't figure out how to easily do this and am hoping that someone knows.

Here's the code:


// save user info to global variable

Set(

    CurrentProfile,

    Office365Users.MyProfileV2()

);

// determine group based on manager

Set(IsManager,CountRows(Office365Users.DirectReports(CurrentProfile.UserPrincipalName))>0);


What would the line correctly look like using Direct ReportsV2?

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-02-12T19:39:10+00:00

    Dear Jason Chrane,

    Good day! Thank you for posting to the Microsoft Community.

    This forum primarily focuses on Microsoft 365 and Office built-in features.

    Since your query is related to converting Power Apps code from Office365Users.DirectReports to Office365Users.DirectReportsV2, and our community has limited knowledge on this topic, I sincerely recommend that you post your concern to the specific channel, Microsoft Power Platform Community by clicking on Post a question.

    Image

    Members and engineers over there are proficient in the knowledge of Power Apps code issues. We are sure that our experts from that team can address your query effectively and accurately.

    Thanks for your understanding and cooperation! Hope you have a nice day!

    Sincerely,

    Ralph | Microsoft Community Moderator

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments