Hi,
I'm trying to fetch a list of related appointments in VS C# so i can export them to our billing app.
it works great except i can't retrieve the organizer element / attribute / (field)
Here is the query.
i get this error:
Code: -2147220970
Message: An unexpected error occurred.
Plugin Trace:Inner Fault: Has Inner Fault
if i comment out "organizer" then it work A1.
ActivityQry = new QueryExpression("appointment"); ActivityQry.ColumnSet = new ColumnSet("subject", "regardingobjectid", "scheduledstart", "scheduledend", "scheduleddurationminutes" , "description", "new_typeofwork"); // , "organizer"); <-- not sure why organizer throws error... not sure i need it ActivityQry.Distinct = true; ActivityQry.Criteria = new FilterExpression(LogicalOperator.And); ActivityQry.Criteria.AddCondition("regardingobjectid", ConditionOperator.Equal, ClosedIncident.Id); // get related appointments RelActivities = (EntityCollection)service.RetrieveMultiple(ActivityQry);