April 2014
Intermediate to advanced
1176 pages
30h 5m
English
The RetrieveMultiple method gets one or more than one instance of an entity.
For example, you can use this method as shown in Listing 24.4 to retrieve all the Accounts for an organization.
LISTING 24.4 Retrieve an Organization’s Accounts
private static void GetAllAccounts(string organizationName) { using (XrmSdk.OrganizationServiceClient myCrm = new XrmSdk. OrganizationServiceClient()) { try { myCrm.Endpoint.Address = new System.ServiceModel.EndpointAddress (GetCrmServiceForOrganization(organizationName)); myCrm.ClientCredentials.Windows.ClientCredential =
Read now
Unlock full access