Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
Employee

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.