Hi everyone!
The environment is D365 Finance and Operation online.
I have created some new data entities for a special report purpose. I have created the proper privileges and roles too.
The Primary Company Context property is empty.
We have more then 20 companies in the test environment.
When I use these entities in an OData query (Power Query in excel, or Power BI) I get the expected data for all company.
But if I assign only 2 organizations to the roles within the AX I get the following message when I refresh the query:
DataSource.Error: OData: Request failed: The remote server returned an error: (400) Bad Request. (An error has occurred.)
Details:
DataSourceKind=OData
I have the same issue with the default entities and the default roles too.
Basically my question is:
How can I query the data of companies that the user has access to. But not only the data of the default company and not the data of all company.
Thanks
Csaba
*This post is locked for comments