logo
search
Others

How to Convert Power Apps Code to DirectReportsV2

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

Question details

The user needs to update an existing Microsoft Power Apps formula by replacing the deprecated Office365Users.DirectReports function with the new Office365Users.DirectReportsV2 function.

Product
Microsoft Power Apps
Device & OS
not provided
Scenario
Updating deprecated connector functions in a Power Apps application.
Observed behavior
The Office365Users.DirectReports function is marked as deprecated, requiring a migration to the DirectReportsV2 schema.
Before you start

Before modifying your Power Apps formulas, ensure you have saved a backup copy of your current app version and review the latest Microsoft Power Platform connector documentation.

Solution 1Recommended

Consult the Microsoft Power Platform Community

Because DirectReportsV2 requires specific schema changes, the best approach is to seek guidance from Power Apps experts on the official forums.

Upgrading to a V2 connector often changes the data structure returned by the function. Simply replacing the function name may result in errors if your tables or galleries rely on the old schema.

1
Gather Your Code

Copy your current formula using the deprecated Office365Users.DirectReports function and note the specific connector details you are using.

2
Visit the Community

Navigate to the official Microsoft Power Platform Community forums.

3
Post Your Question

Create a new post explaining your scenario, paste your existing formula, and ask members or engineers for the exact syntax needed for the DirectReportsV2 conversion.

Schema Differences: The V2 version often returns a different data structure compared to V1, requiring changes to field references in your app.
Free Microsoft Office alternative

Looking for a Lightweight Office Alternative?

While Power Apps handles your complex business logic and apps, you might also need a fast, reliable, and cost-effective office suite for your daily documentation. WPS Office provides excellent compatibility with Microsoft Word, Excel, and PowerPoint files without the heavy subscription costs.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button.
  2. 2. Install WPS Office: Run the downloaded installer file and follow the on-screen instructions.
  3. 3. Start Creating: Open WPS Writer, Spreadsheet, or Presentation to manage your documents effortlessly.
Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx).Lightweight design ensures fast startup and smooth operation.Familiar user interface for a seamless transition.Free core features for handling your daily business documentation.
microsoft office alternative - wps office

Frequently Asked Questions

Why is Office365Users.DirectReports deprecated in Power Apps?

Microsoft frequently updates its connectors to improve performance, security, and data structure. The V1 function is deprecated in favor of V2, which offers a more robust and scalable schema for retrieving directory information.

What is the main difference between DirectReports and DirectReportsV2?

The primary difference lies in the response schema. DirectReportsV2 typically returns data in an updated structural format, meaning formulas that reference specific output fields (like user IDs or emails) must be updated to match the new structure.

Can I still use the deprecated DirectReports function?

While deprecated functions may continue to work temporarily in existing apps, they are no longer supported or updated by Microsoft. It is highly recommended to migrate to the V2 version to prevent your app from breaking in the future.

Where can I find examples of DirectReportsV2 formulas?

The Microsoft Power Platform Community forums and the official Microsoft Power Apps connector documentation are the best resources for finding code snippets, schema details, and migration examples.