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

By Josh Lee | May 9, 2017

Dynamics 365 for operations: access all company entity data from power bi

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

Recommended Reading:

5.27.22 Dynamics GP

How to Run Drop Ship Sales in Dynamics GP

Need to Invoice the Customer before you get the invoice from the vendor? This The freight forwarder has contacted you […]

Read the Article

New Features in Dynamics 365 Business Central 2022 Wave 1 Release – Protecting G/L Accounts From Being Deleted

There are a lot of exciting New Features in Dynamics 365 Business Central 2022 Wave 1 Release to get excited […]

Read the Article
5.25.22 Financials

Rounding Numbers in Power Automate

  If you’ve ever tried to round numbers in Power Automate, you have probably already run into the issue there […]

Read the Article

Manage U.S. Use Tax on Purchase Orders in Dynamics 365 Finance and Operations

  Managing sales tax requirements on your business purchase can be complicated, but Dynamics 365 Finance and Operations can help […]

Read the Article
5.19.22 Dynamics CRM

How to Write a Great Support Ticket in the Stoneridge Support Portal

Submitting a support ticket through the Stoneridge Support Portal is a quick and effective way to get assistance for any […]

Read the Article

Managing Your Business Through Uncertain Times Using Dynamics 365 Finance and Operations

  Dynamics 365 Finance and Operations (F&O) can help you make informed decisions on how to move your business forward. […]

Read the Article
5.13.22 Power Platform

Using Power BI Object Level Security

  The following article will demonstrate how to use Power BI Object Level Security to disable column data based on […]

Read the Article
5.12.22 Dynamics CRM

How to Use the Stoneridge Support Portal

Stoneridge Software’s support portal is an intuitive and useful function that makes it easy for you to access resources to […]

Read the Article
5.6.22 Dynamics GP

Dynamics GP Transaction Removal: Purchase Orders

  Are you having performance issues with Purchase Orders?  Do you find that there are old Purchase Orders on your […]

Read the Article

Start the Conversation

It’s our mission to help clients win. We’d love to talk to you about the right business solutions to help you achieve your goals.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X