private List<AccoutSaleModel> GetAccountSaleMsgs(IOrganizationService adminService) { List<object> accoutidList = new List<object>(); accoutidList.Add(new Guid("xxxxx")); accoutidList.Add(new Guid("xxxxx")); QueryExpression qe = new QueryExpression("account"); qe.Criteria.AddCondition("accountid", ConditionOperator.In, accoutidList.ToArray()); qe.ColumnSet.AddColumns("accountid", "scc_sales_area", "scc_state", "scc_credit_rating"); var ec = adminService.RetrieveMultiple(qe); if (ec != null && ec.Entities.Count > 0) { foreach (var en in ec.Entities) { 。。。 } } return accList; }