EWS Managed API: How to get hidden attachments on master item of recurrence?

Hi all,

I need to somehow get last modification time for exceptions of recurring appointments. Outlook Spy 3.1 shows exceptions as attachments on master item and they have PR_LAST_MODIFICATION_TIME property which seems to be perfectly what I need. Of course when I request property ItemSchema.Attachments for master item I get nothing and I suppose it is because those attachments are hidden (their PR_ATTACHMENT_HIDDEN property has value true). So question is how can I get those hidden mysterious attachments out of master item of recurring appointment?

I already use extended properties to get other MAPI properties so it would not be a problem to get those attachments this way, all I need is property id and value type and google does not seem to know this (or maybe my google-fu I crippled today). So any help, advice, hint will be greatly appreciated.

March 20th, 2012 12:17pm

You can't there are a few things you can't do in EWS (at the moment anyway) like accessing like full access to the Recipients collection and the Extended properties on these objects. You can't also access Extended properties on attachment Items just those that have been added such as Size and contact pictures in 2010 see http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/e1cbf0e5-6c57-462b-8d8d-efa1fb0ed323/.

Cheers
Glen

Free Windows Admin Tool Kit Click here and download it now
March 21st, 2012 5:40am

First, thank you for answer Glen.

Second, I don't want to access or store extended properties on attachments, I want to know which exception changed when hence I need its last modified time property. The fact that exceptions are stored as attachments on master item is Exchange implementation detail and to be honest it is better that EWS is hiding this from me.

What I don't know is why it was done in such way that LastModifiedTime property for exceptions in recurring appointment always returns time of modification of master item. Ok, I understand that to make an exception or modify it we indirectly change recurrence but EWS already gives us separate ItemId for exception and basically we can treat them as normal appointments so why oh why we don't have possibility to check when exception was modified?

So can I assume that there is no way I could know when exceptions were modified? Of course I can always process all exceptions but I'm sure everybody understand it can be problematic when performance is a major factor.

March 21st, 2012 10:40am

Hi,

Do you have any solution for this issue? I am facing same problem right now. I cannot find which exception changed. Any idea will be greatly appreciated.

Thanks

Free Windows Admin Tool Kit Click here and download it now
July 3rd, 2013 5:08pm

Hi,

you have an attachment in an exception of a recurring appointment and you want to retreive this attachment.

If so, you need to bind your exception and retreive attachments for this exception. It should work either it is an hidden attachment.

Appointment master = Appointment.Bind(service, id)

Appointment firstException = Appointment.Bind(service, master.ModifiedOccurences[0].ItemId);

Attachment firstAttachment = Attachment.Bind(service, firstException.Attachments[0].Id);

Regards,

July 4th, 2013 6:52am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics