Fetch Method

The Fetch method executes a query defined by the FetchXML language. In this version, it uses the RetrieveMultiple method, and the Fetch XML is passed as a parameter using the FetchExpression class.

Here are a few points to remember about the Fetch method:

Image With Fetch, you can get results in pages by limiting the number of records returned by page.

Image With Fetch, you can just query the record count or use any aggregation method, such as Avg, Count, Max, Min, or Sum.

Fetch does not support a union join. To view all the tasks for an Account ...

Get Microsoft Dynamics CRM 2013 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.