public static EntityCollection RetrieveMultipleQuery(IOrganizationService crmService, QueryExpression query)
{
try
{
EntityCollection ec = null;
ec = crmService.RetrieveMultiple(query);
if (ec != null && ec.Entities.Count != 0)
return ec;
else
return new EntityCollection();
}
catch (Exception ex)
{
FileLogHelper.LoggEx(ex, typeof(CrmManagerStatic), "public EntityCollection RetrieveMultipleQuery(QueryExpression query)"+Environment.NewLine+
"EntityName : " + query.EntityName);
throw ex;
}
}
Hiç yorum yok:
Yorum Gönder