Execute the FetchXML query
You can execute a FetchXML query by using either the Web API or the Organization service.
Using Web API
You can pass a URL encoded FetchXml string to the appropriate entityset using the fetchXml query string parameter. More information: Use custom FetchXML.
Using Organization service
Use the IOrganizationService.RetrieveMultiple method passing an FetchExpression where the Query property contains the FetchXml query.
The following code shows how to execute a FetchXML query using the Organizations service:
