Dynamics 365 for Operations: Access All Company Entity Data from Power BI

by | Updated November 2, 2020 | Dynamics 365 for Finance and Operations, Power Platform, Set Up

Power BI can connect to data entities exposed via OData from a Dynamics 365 for Operations environment. The Dynamics 365 OData endpoints by default expose all data entities that are marked as IsPublic in the AOT Properties field.

Dynamics 365 for Operations Accessing All Company Entity Data from Power BI

The default OData behavior is that for any entity the data return is based on the users set default company. A common requirement is to report and filter across all company data.  You can expose all company data by invoking the ?cross-company=true query option.

Here is an example of the before and after effects of this filter based on my Admin user login which has USMF as the default company:

Dynamics 365 for Operations accessing all company entity data from Power BI

I’ll connect to the SalesOrerLines entity (NOTE: the entity name IS case sensitive)  in Dynamics 365 for Operations using the following OData URL:

Dynamics 365 for Operations accessing all company entity data from Power BI

I only get the Sales order lines for the company USMF since that is the default company set for my user login. But what if I want to show Invoiced Sales Lines for all companies?

D365forOperations_EntityData_JoshLee4

I can modify the OData URL and append ?cross-company=true to the end.

D365forOperations_EntityData_JoshLee5

This will override the default behavior OData service behavior and get Sales lines for all companies.  Keep in mind that this can significantly increase the volume of data being returned. In my simple demo environment, it was over 400 MB.

D365forOperations_EntityData_JoshLee6

With the cross-company filter enabled I can now filter by specific companies or all up:

D365forOperations_EntityData_JoshLee7

D365forOperations_EntityData_JoshLee8

You can also override the default behavior of showing the data for the default company for the user by modifying the filter and passing in the desired company.  Recall from above that my user defaults to USMF, however, here I am overriding that behavior and pulling data for USRT only.

D365forOperations_EntityData_JoshLee9

D365forOperations_EntityData_JoshLee10

Related Posts

4 Comments

  1. Rich

    Good Article, but I’ve been fighting trying to get this to work properly. Seems if I connect using the D365 source, and just appending the “?cross-company=true” at the end of /data (to see all tables without specifying a specific table like you are) I still only get the Default company that I am assigned to. Continuing my testing to see what else I can do….

  2. Taylor Valnes

    Hello Rich,

    I’ve spoken with one of our BI Solution Architects and the question they asked was if you are able to access a specific company as it is, not just the default but a different one?

    Regards,
    Taylor

  3. Alan

    Adding “?cross-company=true” used to work. However, with the new [Implementation=”2.0″] it no longer does. I have not yet been able to find a way to pull all or multiple legal entities when using [Implementation=”2.0″]. Which is a shame as it otherwise would help speed up queries.

    Using D365FO 7.1 (about to roll up to 7.3)

  4. Taylor Valnes

    Hello Alan,

    We’d need to know more about your environment before we could assist you on this issue. We do offer some support options if that’s something you’d like to look into: https://stoneridgesoft.wpengine.com/support/

    Regards,
    Taylor

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

april

31mar01aprTraining Class: Financial Reporting W/Account Schedules for Dynamics 365 Business Central

07apr2:00 pm2:30 pmEnsuring Quality for Batch Manufacturers

08apr11:00 am12:00 pmConfab with Stoneridge - Livestream - Jumping into the Deep End of the Data Lake

14apr10:00 am10:30 amBoost Seller Productivity and Close More Business with Dynamics 365 Sales

21apr10:00 am10:30 amSetting Your Sales Team Up for Success: A Modern Look at Revenue Operations

21apr12:00 pm1:00 pmGetting Started with Barcode Scanners and WMS Apps for Business Central

21apr2:00 pm3:00 pmMoving to the Cloud: Today's Solution for Leading Field Service Companies

22apr11:00 am12:00 pmConfab with Stoneridge - Livestream - Moving from Manual to Automated with Strategic Automation Strategies

28apr10:00 am10:30 amThe Modern Manufacturer: Best Practices for Inventory Turnover

28apr12:00 pm1:00 pmPower Up Microsoft Dynamics by Automating Budgeting, Dashboarding and Reporting

may

05may10:00 am10:30 amAchieve More with Zetadocs for Business Central

05may2:00 pm2:30 pmSimplifying Item Pricing, Availability, and Tracing for Batch Manufacturers

06may11:00 am12:00 pmD365 Field Service – New Features to Empower Your Remote Workforce

12may10:00 am10:30 amThe Modern Manufacturer: Manufacturing Software in the Real World

12may12:00 pm12:30 pmFinancial Implications of Moving from Dynamics GP to Dynamics 365: Licensing and Infrastructure

17may(may 17)8:00 am28(may 28)11:00 amDynamics 365 Finance & Supply Chain Development Training - Online Workshop

26may10:00 am10:30 amThe Modern Manufacturer - Enterprise Asset Management

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X