View Single Post
  #5  
Old October 14th 06, 04:26 AM posted to microsoft.public.outlook.program_addins
Rog
external usenet poster
 
Posts: 62
Default ItemChange and Exchange synchronization

Thanks Dmitry for your response. Well basically once a user does a save
I capture the ItemChange event and log the item that was change to a
local db. Then when they click a button I try to sync to the contact up
to a server based on the values from the local db file. In addition to
syncing from outlok I also sync down from the server to outlook and save
the item. During the syncing I set a flag so anything that is saved
will not trigged the ItemChange event, but once my sync process is
complete, I change the flag to capture the next time someone modifies a
contact. So the problem is about 30 secs after my sync process is
complete and the flag is reset, Outlook syncs with exchange which causes
the ItemChange event to fire and me to resave the item as modified in my
local b file which triggers the whole process over again when nothing
has really changed.
Does that make sense?

Dmitry Streblechenko wrote:
No, the cached Exchange provider provides no notification.
Why wouldn't you want to run your code? Does it matter whether a change
occured because the current user modified an item or because it got modified
on a different machine and the Exchange provider received the notification
and updated the local copy?

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

"Rog" wrote in message
...
I am using the ItemChange event in my C# code to capture when an item is
saved and then do something with it. The problem is I do not want to do
this action when Exchange is syncing. Is there anyway to determine when
exchange is doing its auto-sync so i can not run the code?
Thanks so much



Ads