public static EntityCollection GetActivityMimeAttachment(IOrganizationService crmService, Guid activityid, ColumnSet columnset)
{
try
{
QueryExpression _attachmentQuery = new QueryExpression
{
EntityName = ActivityMimeAttachment.EntityLogicalName,
ColumnSet = columnset,
Criteria = new FilterExpression
{
Conditions =
{
new ConditionExpression("objectid",ConditionOperator.Equal,activityid)
}
}
};
return crmService.RetrieveMultiple(_attachmentQuery);
}
catch (Exception ex)
{
throw ex;
}
}
Hiç yorum yok:
Yorum Gönder