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

  • Question

  • 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.

    Tuesday, March 20, 2012 9:17 AM

All replies

  • 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

    Wednesday, March 21, 2012 2:40 AM
  • 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.

    Wednesday, March 21, 2012 7:40 AM
  • 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

    Wednesday, July 3, 2013 9:06 PM
  • 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,


    Désiré GOVIN, Refresh IT Solutions

    Thursday, July 4, 2013 10:50 AM