Problem with appointments in calenders of additional mailboxes

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

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top