ItemAdd event is not triggered when importing a large number of contacts

K

kia

Hello,

When I tried to import (using the Import and Export option from the File menu) a large number of contacts (over 1000) into the Contacts folder the ItemAdd event is not triggered at all.

In the same circumstances when I tried to import only 10 contacts I saw that the ItemAdd event was triggered for every contact item.
I have an Outlook plug-in and I want to perform some additional operations for the newly added contacts, so I need to be notified when a contacts is added.

Is there some kind of limitation in Outlook, or how can I resolve this problem ?

Note: I monitorized the events with Outlook Spy.

Thanks,
K.I.
 
D

Dmitry Streblechenko

Events should not be used for nay kind of synchronization etc. Their primary
purpose is notifying the UI so that a user can see the changes.
Under Exchange, if there are more than 16 events, MAPI issues a generic
"something changed" event, which is not exposed through the Outlook Object
Model - you can see it in the GetContentsTable tab of the IMAPIFolder window
in OutlookSpy.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

Hello,

When I tried to import (using the Import and Export option from the File
menu) a large number of contacts (over 1000) into the Contacts folder the
ItemAdd event is not triggered at all.

In the same circumstances when I tried to import only 10 contacts I saw that
the ItemAdd event was triggered for every contact item.
I have an Outlook plug-in and I want to perform some additional operations
for the newly added contacts, so I need to be notified when a contacts is
added.

Is there some kind of limitation in Outlook, or how can I resolve this
problem ?

Note: I monitorized the events with Outlook Spy.

Thanks,
K.I.
 

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