Problem with appointments in calenders of additional mailboxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I made an add-in which captures the ItemAdd events for appointments and
presents the user with a window.
This also works for calendars of additional mailboxes (if there are any).

The thing is... if somebody makes an appointment in such an "additional"
calendar, all other users which also have the add-in and also have the same
mailbox in their outlook will get that window also when the appointment is
made.

Does anybody have an idea how I can prevent this from happening? Only the
user who initiates the appointment should get that window. Not the users who
also added that calendar in their Outlook. I tried to do it by comparing the
"organizer" field of the appointment with the user who is logged on. This
doesn't work because the organizer is filled with the name of the owner of
the calendar, not the person who is making the appointment in the calendar.
 
To get beyond the Organizer property you'd have to be using an API that
supports getting various MAPI properties such as Extended MAPI, CDO 1.21 or
Redemption (www.dimastr.com).

You can then look at the PR_LAST_MODIFIER_NAME (0x3FFA001E) and
PR_SENDER_NAME (0x0C1A001E) and PR_SENT_REPRESENTING_NAME (0x0042001E)
properties to find what you want.
 
Back
Top