public static EntityCollection GetAllCurrencyCol(IOrganizationService service, StateCodeEntity statecode)
{
try
{
QueryExpression query = GetQueryExpressionSingle("transactioncurrency", "statecode", (int)statecode, new ColumnSet(new string[] { "transactioncurrencyid", "currencyname" }));
EntityCollection ec = service.RetrieveMultiple(query);
if (ec != null && ec.Entities.Count > 0)
return ec;
else
return new EntityCollection();
}
catch (Exception ex)
{
FileLogHelper.LoggEx(ex, typeof(CrmManagerStatic), "public static EntityCollection GetAllCurrencyCol(IOrganizationService service, StateCodeEntity statecode)");
throw ex;
}
}
GetQueryExpressionSingle metodu
Metot Kullanımı
Quote teklif = CrmManagerStatic.GetQuote(crmService, quoteid, new ColumnSet("quoteid", "ite_country", "tmp_eventtype", "pricelevelid", "ite_quoteproject"));
Hiç yorum yok:
Yorum Gönder