Hello, I've defined the following QueryExpression:
var qe = new QueryExpression("annotation");
qe.ColumnSet.AddColumns(new string[] { "filename", "documentbody", "modifiedon" });
qe.Criteria.AddCondition("objectid", ConditionOperator.Equal, incident.Id);
qe.Criteria.AddCondition("modifiedon", ConditionOperator.GreaterEqual, lastPSSaveDateTime); //'12/2/2013 8:15:06 PM'
var notes = orgService.RetrieveMultiple(qe).Entities.ToList();
I copied the variable values during debug, and pasted them into a SQL query:
select filename, documentbody, * from annotation
where objectid = '32e64b43-8e5b-e311-ad17-00155d760004'
and modifiedon > '12/2/2013 8:15:06 PM'
The QueryExpression returns 0 rows, although the SQL query returns 2 rows (as expected). Can you see any problems with my QueryExpression above, that would make it return 0 rows, instead of the expected 2 rows?