This documentation is archived and is not being maintained.

Translate a LINQ Query to FetchXML

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Having an understanding of the mechanics behind the Microsoft Dynamics CRM SDK FetchXML language can be helpful, especially in debugging query issues. To view the FetchXML equivalent of a particular Microsoft Dynamics CRM LINQ query, call the ToString() method on the query expression. If the LINQ query is in a form that cannot be translated into FetchXML, the call to ToString() will throw an exception with the details on the translation error.

See Also


© 2010 Microsoft Corporation. All rights reserved.