Outlook: check for duplicate contact fails when addin active

G

Georg Fritzsche

Hi,

i just confirmed a weird behaviour in Outlook 2003: when our custom
AddIn is active, the "check for duplicate contacts" feature does not
work anymore. Deactivate the AddIn and it works fine again.
I already checked the obvious explanation of having a contactItem.Save
() somewhere, e.g. in the close handler for an inspector.

Does anyone know what might lead to that behaviour?

Regards,
Georg
 
K

Ken Slovak - [MVP - Outlook]

Just having an addin is no reason for the duplicate check to not work.

That function never has worked when you create a contact with code, if
that's what you're seeing.

If the user creates a contact or uses one of the built-in Outlook functions
to create a contact then the duplicate checking should occur unless your
addin is doing something to prevent it.
 
G

Georg Fritzsche

That function never has worked when you create a contact with code, if
that's what you're seeing.

If the user creates a contact or uses one of the built-in Outlook functions
to create a contact then the duplicate checking should occur unless your
addin is doing something to prevent it.

I don't create contacts programmatically, i meant user-created
contacts.
Whats even more confusing: i tried disabling all event handlers for
the inspector and the explorer and it doesn't make a difference.
Yet when deactivating the addin, everything works fine again.

I can't really see what else could have such side-effects.

Regards,
Georg
 
G

Georg Fritzsche

I can't really see what else could have such side-effects.

After some trial and error it seems there are problems with adding
actions in the inspector, although i can't say yet wether this a
result of how i add them.
At least simply not adding actions to contacts in the inspector works
at the moment. Are there maybe some problems with actions for not-yet-
stored contacts?

Regards,
Georg
 
K

Ken Slovak - [MVP - Outlook]

You are getting a ContactItem and adding to its Actions collection? That
will modify the form and therefore cause the duplicate checking to not work,
just as if it was a custom form with a custom MessageClass.




I can't really see what else could have such side-effects.

After some trial and error it seems there are problems with adding
actions in the inspector, although i can't say yet wether this a
result of how i add them.
At least simply not adding actions to contacts in the inspector works
at the moment. Are there maybe some problems with actions for not-yet-
stored contacts?

Regards,
Georg
 
G

Georg Fritzsche

You are getting a ContactItem and adding to its Actions collection? That
will modify the form and therefore cause the duplicate checking to not work,
just as if it was a custom form with a custom MessageClass.

Thank you, that saved me some time for testing.

Regards,
Georg
 

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