MS Dynamics 365 Cross company reporting
In order to see data across all companies, in reporting, one assumes the below property in AOT query behind the report logic will do the trick:
There’s more to what displaying the cross-company data in reports would take.
When one enables the above ‘Allow cross company’ property in AOT query and rebuilds it, it adds the company range in report query. The ‘allowCrossCompany’ method allows you to query in more than one company, but the query does not know in which companies to do so.
This can be achieved by adding ‘addCompanyRange()’ for each eligible company whose data you want to see.