Hi All,
I enabled the Web API Preview for CRM online 2015 Update 1.
When tried to run a OData query using Organization service - to get EntitySet with navigation properties it works ok.
However the same query (with change in syntax) when run using Web API gave error.
Example:
https://..serviceurl/api/data/Entity$select=columns...$expand=relatedEntity($select=relatedFieldName)$filter=....
The above query gives error
However if i change this to just fetch only one entity i.e.
https://..serviceurl/api/data/Entity(...Guid here for one entity...)$select=columns...$expand=relatedEntity($select=relateFieldName)$filter=....
The exact same query works.
So the question is "How do we get a entityset with fields from related entities using CRM online Web API."
Given that organization service is now deprecated (still available but in future it will go away) in CRM 2016.
I even tried FetchXMLwith Web API - that also gave error. One possibility I see is that the Preview Web API in CRM online 2015 update 1 does not support these.
Has anyone tried this scenario in CRM Online 2016 and if they work ok?
Please advise.
Mohan
-- Mohan | My Blog