31. August 2011 16:52
List<BusinessEntity> resultCollection = new List<BusinessEntity>();
QueryExpression query = new QueryExpression();
CrmService service = ConnectMsCrm();
query.EntityName = EntityName.queueitem.ToString();
query.ColumnSet = new AllColumns();
// Alle Filter die hier standen habe ich aktuell gelöscht.
RetrieveMultipleRequest retrieve = new RetrieveMultipleRequest();
retrieve.Query = query;
retrieve.ReturnDynamicEntities = true;
RetrieveMultipleResponse retrieved = (RetrieveMultipleResponse) service.Execute(retrieve);
Console.WriteLine("Entity Count: {0}", retrieved.BusinessEntityCollection.BusinessEntities.Count());
6. September 2011 11:57