none
Getting Attendees from an AppointmentItem Outlook Add-in RRS feed

  • Question

  • I'm so sorry for these dumb questions, but I really stuck sometimes. I'm creating an add-in for Outlook 2007 on VS2010 with c#.

    I need to get attendees as I am creating a new appointment. But the RequiredAttendees property returns null.

    After I create the entry, and open it for view or edit I can get the Attendees. I mean when "read" events function runs, everything is ok, but "write" events function runs, I get null. What can I do?

    Tuesday, May 22, 2012 10:50 AM

Answers

  • for first option - bare appointment try Close event, for second one try either Send event on item or ItemSend on Outlook's application object.
    Tuesday, May 22, 2012 1:12 PM

All replies

  • please check Recipients collection on appointment
    Tuesday, May 22, 2012 11:19 AM
  • I've checked it allready. It also returns null. I've inspected all properties one by one, but nothing found.
    Tuesday, May 22, 2012 11:47 AM
  • can you move your logic from write event to some other event?

    Tuesday, May 22, 2012 12:19 PM
  • I'm trying to do it, but I'm not sure if I can do it.

    Let me explain the working scenerio of the Add-in :

    1 - User creates an appointment.

    2 - User presses "Send" or "Save" button

        2.1 - There are no attendees

           2.1.1 - The appointment is written to the database as how it is.

        2.2 - There are attendees

           2.2.1 - Names of attendees are taken.

           2.2.2 - Names are merged with the "Description" of the appointment.

           2.2.3 - The appointment is written to the database.

    Do you have any event suggestion or something?


    Tuesday, May 22, 2012 12:57 PM
  • for first option - bare appointment try Close event, for second one try either Send event on item or ItemSend on Outlook's application object.
    Tuesday, May 22, 2012 1:12 PM
  • OMG, Close event worked. Its implementation is a little bit hard because of the Close() method ambiguity, but it worked.

    Thank you very much, thank you.

    Tuesday, May 22, 2012 2:05 PM