How do I find a calendar Item that is a recurring appointment, but the
range has no end date? I have tried various restrictions against the
recurring property but none of them seem to be what I want as the
recurrence property has to attributes, Item and Item1, representing
the pattern and the range. I just need to find items that are
recurring, but have no end date. Any ideas? I have tried this, and
that property is not valid for that restriction.
FindItemType findItem = new FindItemType();
findItem.Traversal = ItemQueryTraversalType.Shallow;
findItem.ItemShape = new ItemResponseShapeType();
findItem.ItemShape.BaseShape = DefaultShapeNamesType.IdOnly;
findItem.ParentFolderIds = new BaseFolderIdType[] { new
DistinguishedFolderIdType(DistinguishedFolderIdNameType.calendar) };
PathToUnindexedFieldType rec = new PathToUnindexedFieldType();
rec.FieldURI = UnindexedFieldURIType.calendarRecurrence;
IsEqualToType equalTo = new IsEqualToType();
equalTo.Item = rec;
FieldURIOrConstantType constant = new FieldURIOrConstantType();
ConstantValueType constantValue = new ConstantValueType();
constantValue.Value = string.Empty;
constant.Item = constantValue;
equalTo.FieldURIOrConstant = constant;
findItem.Restriction = new RestrictionType();
findItem.Restriction.Item = equalTo;
Obviously, this is not want i want, this would look for CalendarItems
that have a recurrence property of "". I need items that have the
property and the Item1.EndDate is not null.
Thanks All,
~ck
Archived from group: microsoft>public>exchange>applications