其他分享
首页 > 其他分享> > Dynamic CRM 365 通过自身GUID的集合多查询的例子

Dynamic CRM 365 通过自身GUID的集合多查询的例子

作者:互联网

     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;

        }

 

标签:accoutidList,365,List,Dynamic,ec,qe,scc,new,GUID
来源: https://www.cnblogs.com/parkerchen/p/16150397.html