Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Using DeleteItemType: error "The specified object was not found in the store., The process failed to get the correct properties."

$
0
0

Hi,

I am using "ExchangeServiceBinding" for creating Outlook Events.

Events have been successfully created using the method CreateItemResponseType, but I am getting the below error while deleting the above created event using DeleteItemType.

DeleteItemType Error: "The specified object was not found in the store., The process failed to get the correct properties."

My Code:

static ExchangeServiceBinding esb = new ExchangeServiceBinding();
                esb.Url = ConfigurationManager.AppSettings["EWSEndPoint"];
                esb.Credentials = new NetworkCredential(ConfigurationManager.AppSettings["EWSUserID"], ConfigurationManager.AppSettings["EWSPassword"], ConfigurationManager.AppSettings["EWSDomain"]);

                DeleteItemType dit = new DeleteItemType();
                dit.ItemIds = new BaseItemIdType[1];
                ItemIdType itemId = new ItemIdType();
                itemId.Id = "AAAVAEFiZHVsLkFsZWVtQGVmZmVtLmNvbQBGAAAAAABQsZdhLcaxRYGYWXAU04YLBwAuJWVlmt6JS6Br2B95OhmHAAAA1u+UAAAvwxBRgZgpR6cwWZ+llXaHAAEg617fAAA=";               
                dit.DeleteType = DisposalType.MoveToDeletedItems;
                dit.SendMeetingCancellations = CalendarItemCreateOrDeleteOperationType.SendOnlyToAll;
                dit.SendMeetingCancellationsSpecified = true;
               
                dit.ItemIds[0] = itemId;

                DeleteItemResponseType diResponse = esb.DeleteItem(dit);

Thanks

Abdul Aleem


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>