cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AndreaRaponi
New Member

Querying CRM online Odata with PowerBI

hi all,
i'm working with Odata service of  Dynamics 365 ( 8.2 ) and i want select a defined subset of columns of the considered entity.
To improve the performance i prefer choose the interested columns directly from the Odata URL.
Below, i expose the tests carried out.

Test 1
Using the following request OData.Feed("https://****-**.api.crm4.dynamics.com/api/data/v8.2/accounts?$select=accountid" ) the query returns all columns of entity "Accounts", but only the selected column has the right value, instead the other columns have been nulled.

Test 2
Otherwise using the following request Json.Document(Web.Contents("https://****-**.api.crm4.dynamics.com/api/data/v8.2/accounts?$select=telephone3, donotfax")) the query correctly returns only the selected column/s.

Could you support me to understand the trade off to use of two powerbi connectors or if there are syntax errors?

 

thanks in advance,
Andrea

1 REPLY 1
v-ljerr-msft
Microsoft
Microsoft

Hi @AndreaRaponi,

 

It seems to me that there is no any syntax error in your queries, and the solution in Test 2 is better. Based on my research, it could still be an issue that filtering the initial OData query doesn’t work as expected if you are using the new OData service of CRM 2016 Online. Here is the article for your reference. Smiley Happy

 

Regards

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors