| Author |
Message |
MeepMeep
Guest
|
Posted:
Tue Sep 06, 2005 3:08 pm Post subject:
unique identifier |
|
|
Hi everybody,
we are synchronizing contacts and appointments with exchange server 2003 sp1
on windows 2003 sp1 with our own solution. We use ADO over exoledb, at the
moment no event sinks.
Contacts are derived from items and appointments are derived from items.
We keep internally a mapping table with an unique id from exchange and our
unique id. At the moment we take dav:uid.
But the problem is:
If we move an item to a different folder e.g. deleted items or somebody in
outlook moves an item to the deleted items folder, exchange changes the
dav:uid. So we are not able to find the item again.
dav:id, dav:uid and repl-uid are changed from exchange.
Is there a unique identifier which does not change?
If not, would then be the only solution with event sinks or
WebDAV-notifiers?
Any tip would be nice.
Thanks in advance.
Jens
|
|
| Back to top |
|
 |
MeepMeep
Guest
|
Posted:
Tue Sep 06, 2005 4:59 pm Post subject:
Re: unique identifier |
|
|
Hi,
as far as i know an exchange item has no fix number of fields, just those
who are filled. I read that the fields of an item are extensible.
So adding a field, generating a guid, saving it in that field would help to
tag an item. I had this idea on my own, but just unsure how to deal with
this.
So how do i do this technically?
fields->Append("<field-name>", adGUID, 72, adFldUnspecified, <guid>)?
And how do i avoid fieldname conflicts? (GUID for fieldname as well?)
Or what is the best way to tag an item?
Would be nice to get help again.
Thanks in advance,
Jens Törber
"Henning Krause [MVP - Exchange]" <newsgroups.remove@this.infinitec.de>
schrieb im Newsbeitrag news:#2xQxHvsFHA.3720@TK2MSFTNGP14.phx.gbl...
| Quote: | Hello,
yes, it seems there is no permanent id. Even the EntryID is not binary
comparable, they can only be compared using the MAPI CompareEntryIds()
function.
If you want to avoid eventsinks, you could tag the elements with a custom
guid.
Greetings,
Henning Krause
MVP - Exchange
http://www.infinitec.de
"MeepMeep" <toerber@newsgroup.nospam> wrote in message
news:ufCZepssFHA.1168@TK2MSFTNGP11.phx.gbl...
Hi everybody,
we are synchronizing contacts and appointments with exchange server 2003
sp1
on windows 2003 sp1 with our own solution. We use ADO over exoledb, at
the
moment no event sinks.
Contacts are derived from items and appointments are derived from items.
We keep internally a mapping table with an unique id from exchange and
our
unique id. At the moment we take dav:uid.
But the problem is:
If we move an item to a different folder e.g. deleted items or somebody
in
outlook moves an item to the deleted items folder, exchange changes the
dav:uid. So we are not able to find the item again.
dav:id, dav:uid and repl-uid are changed from exchange.
Is there a unique identifier which does not change?
If not, would then be the only solution with event sinks or
WebDAV-notifiers?
Any tip would be nice.
Thanks in advance.
Jens
|
|
|
| Back to top |
|
 |
Henning Krause [MVP - Exc
Guest
|
Posted:
Tue Sep 06, 2005 4:59 pm Post subject:
Re: unique identifier |
|
|
Hello,
yes, it seems there is no permanent id. Even the EntryID is not binary
comparable, they can only be compared using the MAPI CompareEntryIds()
function.
If you want to avoid eventsinks, you could tag the elements with a custom
guid.
Greetings,
Henning Krause
MVP - Exchange
http://www.infinitec.de
"MeepMeep" <toerber@newsgroup.nospam> wrote in message
news:ufCZepssFHA.1168@TK2MSFTNGP11.phx.gbl...
| Quote: | Hi everybody,
we are synchronizing contacts and appointments with exchange server 2003
sp1
on windows 2003 sp1 with our own solution. We use ADO over exoledb, at the
moment no event sinks.
Contacts are derived from items and appointments are derived from items.
We keep internally a mapping table with an unique id from exchange and our
unique id. At the moment we take dav:uid.
But the problem is:
If we move an item to a different folder e.g. deleted items or somebody
in
outlook moves an item to the deleted items folder, exchange changes the
dav:uid. So we are not able to find the item again.
dav:id, dav:uid and repl-uid are changed from exchange.
Is there a unique identifier which does not change?
If not, would then be the only solution with event sinks or
WebDAV-notifiers?
Any tip would be nice.
Thanks in advance.
Jens
|
|
|
| Back to top |
|
 |
Henning Krause [MVP - Exc
Guest
|
Posted:
Tue Sep 06, 2005 4:59 pm Post subject:
Re: unique identifier |
|
|
Hello,
you would use a namespace for your field, like those used for the existing
field (e.g. "DAV:"). Something like "urn:yourcompany-com:myapplication:id".
Greetings,
Henning Krause
MVP - Exchange
http://www.infinitec.de
"MeepMeep" <toerber@newsgroup.nospam> wrote in message
news:uF7dnbvsFHA.1788@tk2msftngp13.phx.gbl...
| Quote: | Hi,
as far as i know an exchange item has no fix number of fields, just those
who are filled. I read that the fields of an item are extensible.
So adding a field, generating a guid, saving it in that field would help
to
tag an item. I had this idea on my own, but just unsure how to deal with
this.
So how do i do this technically?
fields->Append("<field-name>", adGUID, 72, adFldUnspecified, <guid>)?
And how do i avoid fieldname conflicts? (GUID for fieldname as well?)
Or what is the best way to tag an item?
Would be nice to get help again.
Thanks in advance,
Jens Törber
"Henning Krause [MVP - Exchange]" <newsgroups.remove@this.infinitec.de
schrieb im Newsbeitrag news:#2xQxHvsFHA.3720@TK2MSFTNGP14.phx.gbl...
Hello,
yes, it seems there is no permanent id. Even the EntryID is not binary
comparable, they can only be compared using the MAPI CompareEntryIds()
function.
If you want to avoid eventsinks, you could tag the elements with a custom
guid.
Greetings,
Henning Krause
MVP - Exchange
http://www.infinitec.de
"MeepMeep" <toerber@newsgroup.nospam> wrote in message
news:ufCZepssFHA.1168@TK2MSFTNGP11.phx.gbl...
Hi everybody,
we are synchronizing contacts and appointments with exchange server
2003
sp1
on windows 2003 sp1 with our own solution. We use ADO over exoledb, at
the
moment no event sinks.
Contacts are derived from items and appointments are derived from
items.
We keep internally a mapping table with an unique id from exchange and
our
unique id. At the moment we take dav:uid.
But the problem is:
If we move an item to a different folder e.g. deleted items or
somebody
in
outlook moves an item to the deleted items folder, exchange changes the
dav:uid. So we are not able to find the item again.
dav:id, dav:uid and repl-uid are changed from exchange.
Is there a unique identifier which does not change?
If not, would then be the only solution with event sinks or
WebDAV-notifiers?
Any tip would be nice.
Thanks in advance.
Jens
|
|
|
| Back to top |
|
 |
|
|
|
|