Forum Discussion
oData Query To Dynamics 365 Does Not Fold
- 3 years ago
Ok, this actually works and it's significantly faster. URL-length doesn't seem to be a problem.
OData.Feed("https://xxx.operations.dynamics.com/data/VendorProductDescriptionsV2?$select=ExternalItemId,ItemNumber&$filter=ExternalItemId eq '" & Text.Combine(#"externalIDlist", "' or ExternalItemId eq '") & "'", null, [Implementation="2.0"])It's still quite slow though.
Why are these "professional" Microsoft products such a mess. 🙃
Thanks for the input!
Julian23K wrote:The query result is not very large, like not even 100 tables per query. The table I query from however is very large. So if I just write my own oData query (never done that before), I should be good, right?
You can give it a try. Please note that the objects you query in D365 are entities (since tables are not directly exposed via OData). An entity is like a SQL view, which means each entity you are querying might be executing a complicated sql code involving several other tables.
Please note this important advice - Everything may still work for you now, but a year or two later it may not. I am saying this based on on my own experience. Also keep in mind that the refresh duration usually takes longer after you publish your model to Power BI service. If it takes longer than 90 minutes or so (I don't remember the exact limit), it will time-out Power BI service will cancel the refresh (if you are using Power BI pro).
Ok, this actually works and it's significantly faster. URL-length doesn't seem to be a problem.
OData.Feed("https://xxx.operations.dynamics.com/data/VendorProductDescriptionsV2?$select=ExternalItemId,ItemNumber&$filter=ExternalItemId eq '" & Text.Combine(#"externalIDlist", "' or ExternalItemId eq '") & "'", null, [Implementation="2.0"])
It's still quite slow though.
Why are these "professional" Microsoft products such a mess. 🙃
Thanks for the input!