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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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