none
Get attachments of items (from .ics file) RRS feed

  • Question

  • Hi,

     

    I have created one appointment item.

    In that appointment item, i attached two files.

    Instead of sending it, I have saved it to public folder. (i.e. appnt.ics) file.

    How should I get the attachments of it?

    I tried it with following code

    propertySet = new PropertySet(
                            BasePropertySet.FirstClassProperties,
                            ItemSchema.MimeContent,
                            ItemSchema.Attachments
                            );


     EMailMessage  emailMessage = EmailMessage.Bind(m_Service, item.Id, propertySet);

    //

    //    here item is not mail it is an appointment .ics file

    //

    foreach (Attachment attachment in emailMessage.Attachments)
    {
                //
                Console.WriteLine("^^^INFO Attachment({0}) is found.", attachment.Name);

    }

     

    Here it just printing the name of the appointment file.

     

    Any help is appreciable..

     

    Thanks in advance

    Friday, January 27, 2012 1:51 PM

All replies

  • Hi,

     

    Till now I m unable to get the attachments.. So I created another scenario. I create "public calender folder" and saved a meeting and appointment having attachments in it. How I get attachments from appointments / meetings using EWS and Managed code?

     

    Need help ..

     

    Thanks in advance..

    Monday, February 6, 2012 4:35 AM