This documentation is archived and is not being maintained.

Query Sample Code

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

This section contains sample code that shows how to create queries.

In This Section

Use Condition Operators in a Query

Create a query expression that uses condition operators.

Build Query Expressions

Create query expressions to retrieve the same sets of records as these deprecated methods: RetrieveByPrincipal, RetrieveByOrganization, and RetrieveBySubContacts.

Use a Join to Retrieve Activities by Participant

Use a join to retrieve activities for a participant (systemuser).

© 2010 Microsoft Corporation. All rights reserved.