unique identifier
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
unique identifier

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
MeepMeep
Guest





Posted: Tue Sep 06, 2005 3:08 pm    Post subject: unique identifier Reply with 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
MeepMeep
Guest





Posted: Tue Sep 06, 2005 4:59 pm    Post subject: Re: unique identifier Reply with 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...
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 Reply with 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...
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 Reply with quote

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
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB