Hi,
I recently started working with EWS Managed API and I am trying to find some cancelled meetings in attendees Deleted Items folder. There is a specific scenario when I can't find every cancelled meeting in Deleted Items. The steps go:
Another person creates a recurring meetings with my mailbox
Another person then cancels 3 random occurrences. (That are not one after another)
In my Deleted Items I can see all three occurrences that have been canceled
Try to list Cancelled Meetings from Deleted Items folder using EWS Managed API and get only first and third Cancelled Meetings. For some reason the second one is not displayed.
As for the code, I am looking like this:
var itemView = new ItemView(250)
{
PropertySet = new PropertySet(BasePropertySet.FirstClassProperties)
};
var searchAndFilterCancelledMeetingCollection = new List<SearchFilter>
{
new SearchFilter.IsGreaterThanOrEqualTo(ItemSchema.LastModifiedTime, mailbox.LastCalendarImport.Value.AddDays(-1)),
new SearchFilter.IsEqualTo(ItemSchema.ItemClass, "IPM.Schedule.Meeting.Canceled")
};
var searchAndFilterCancelledMeeting = new SearchFilter.SearchFilterCollection(LogicalOperator.And, searchAndFilterCancelledMeetingCollection);
var resultsCM = exchangeService.FindItems(WellKnownFolderName.DeletedItems, searchAndFilterCancelledMeeting, itemView).Select(s =>
{
s.Load();
return s;
}).ToList();
Things to note:
I am doing these tests on outlook account (my mailbox is on outlook, another account that is making meetings is on Exchange 2016)
EWS Managed API version: Microsoft.Exchange.WebServices 2.2.1
Did not have much luck google-ing this issue, so I hoped maybe someone here could help.
Thanks. Looking forward to any response :)
Hi, I recently started working with EWS Managed API and I am trying to find some cancelled meetings in attendees Deleted Items folder. There is a specific scenario when I can't find every cancelled meeting in Deleted Items. The steps go:
As for the code, I am looking like this:
Things to note:
Did not have much luck google-ing this issue, so I hoped maybe someone here could help. Thanks. Looking forward to any response :)
Regards, Lazar