public static Fax GetFax(IOrganizationService ser, Guid faxid, ColumnSet columnset)
{
try
{
QueryExpression query = GetQueryExpressionSingle("fax", "activityid", faxid, columnset);
EntityCollection ec = ser.RetrieveMultiple(query);
if (ec != null && ec.Entities.Count == 1)
return (Fax)ec.Entities[0];
else
return new Fax();
}
catch (Exception ex)
{
throw ex;
}
}
GetQueryExpressionSingle metodu
Metot Kullanımı
Fax fax = CrmManagerStatic.GetFax(crmService, item, new ColumnSet(new string[] { "activityid", "regardingobjectid", "ownerid", "activitytypecode", "from", "to", "actualdurationminutes", "statecode", "statuscode" }));
i
Hiç yorum yok:
Yorum Gönder