public static EntityCollection GetAnnotation(IOrganizationService crmService, Guid activityid, ColumnSet columnset)
{
try
{
QueryExpression query = new QueryExpression
{
EntityName = Annotation.EntityLogicalName,
ColumnSet = columnset,
Criteria = new FilterExpression
{
Conditions =
{
new ConditionExpression("objectid",ConditionOperator.Equal,activityid)
}
}
};
return crmService.RetrieveMultiple(query);
}
catch (Exception ex)
{
throw ex;
}
}
Metot Kullanımı
EntityCollection ecNotes = CrmManagerStatic.GetAnnotation(crmService, invoice.Id, new ColumnSet() { AllColumns = true });
Hiç yorum yok:
Yorum Gönder