Luke
Luke

Reputation: 5971

Exchange Managed API: How do I search all appointments that have been created since a defined date?

Using Exchange Managed ApI, I need to get all appointments that have a created date that is newer or equal to a defined date. How do I do that?

Upvotes: 1

Views: 3171

Answers (1)

Henning Krause
Henning Krause

Reputation: 5422

You can use the FindItems request to do this:

var items = service.FindItems(WellKnownFolderName.Calendar, new SearchFilter.IsGreaterThanOrEqualTo(ItemSchema.DateTimeCreated, DateTime.Today), new ItemView(100));

Note that you won't get recurring-appointment expansion, so only the master appointments of a recurring appointment is returned.

Upvotes: 5

Related Questions