If you want to be notified at the time that the change happens, then you
will have to have some sort of COM add in installed for outlook which will
be called when you save an appointment, which will then update your
database.
If you are running this as an external app that provides
synchronization, then you will have to scan both sets of appointments (in
your database, and in outlook).
If you find that an item is in one store, but not in another, you are
going to have to delete the item from the store that it is in. Now, this
presents a problem, because you could theoretically delete an item in one
store, and then save it at a time after the delete in the other store. You
have to figure out what you want to do here. From what I understand, if you
delete an item in outlook, and then empty the deleted items folder, the item
will be gone, so you won't know the date that the item was deleted. In this
case, you probably want to treat it like an add, because you have added an
item in one store, and you have no record of it in the other.
If the items exist in both stores, and both are marked as deleted (but
they havent been removed from the store), then do nothing.
If the item exists in one, but not the other, then copy the item to the
other store.
For items which match (you should be comparing the EntryID properties to
see if they are the same), you can check the LastModificationTime property
to see when the last time the item was changed on either side. Whichever
one has the later time takes precidence.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<tb*@uni.dewrote in message
news:11*********************@y5g2000hsa.googlegrou ps.com...
hi
I can create outlook apoointments using the outlook object model.
But now to my problem, if the user edit/change the appointment in
outlook I have inconsistent data because I store the appointment in my
datbase too, so how can a make the change on the database, when
someone change the outlook appointment.
thx