none
Shared Calendars auto added RRS feed

  • Question

  • When you use COM to create an entry in another users calendar it automatically adds an entry under your shared calendars

    If you have already created an entry to that users calendar you end up with two e.g.

    Shared Calendars
       John Doe
       Calendar - John Doe

    How do you prevent the auto entry being created if one already exists in the shared calendars list ?

    Thanks

    Monday, October 14, 2019 12:32 PM

All replies

  • What is your code that creates the folder?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, October 15, 2019 11:24 AM
  • It's just the code that creates the appointment in that users calendar

    i.e. Add on the folder passing olAppointmentItem then populating all the properties before calling Save


    Tuesday, October 15, 2019 1:15 PM
  • It's just the code that creates the appointment in that users calendar

    i.e. Add on the folder passing olAppointmentItem then populating all the properties before calling Save


    Actually this is not correct.

    Having debugged it, it is when GetSharedDefaultFolder of the Namespace object is called passing a Recipient object for the user and olFolderCalendar

    At this point it adds Calendar - <user> to the Shared Calendar list/tree

    Is there another way to get the users calendar without it auto adding it to my tree ?




    • Edited by Minieggs1999 Wednesday, October 16, 2019 11:01 AM
    Wednesday, October 16, 2019 10:58 AM