Unique ID for Exchange
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 ID for Exchange

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





Posted: Wed Oct 26, 2005 11:42 pm    Post subject: Unique ID for Exchange Reply with quote

Hello,
I have gone through a lot of postings, articles and documentation and
still have not been able to come to a concusion as to what to use as a
unique ID in exchange.
The available options are:
1. DAV:id
2. DAV:uid
3. permanenturl
4. repl-uid

But most of them change when the message is moved to another folder.

Could some please:
* which one is really unique as in it will not change even if the item
is copied to another folder etc.
* tell the different cases when to use what in the above list?
* sample of how to use the above properties in a WEBDAV query?

My initial research says that permaneneturl is most reliable. Please
correct me if I am wrong.

Is there any other property that can be accessed through WEBDAV?

Please respond.

Back to top
Henning Krause [MVP - Exc
Guest





Posted: Thu Oct 27, 2005 12:19 am    Post subject: Re: Unique ID for Exchange Reply with quote

Hello,

You are right, there is no unique id that is fixed even if the item is
modified. Even DAV:permanenturl has the folder id in it. If your solution
depends on a permanent ID, you should consider adding your own to the items
under your control. It's not perfect, I know...

Greetings,
Henning Krause
MVP - Exchange
http://www.infinitec.de


"wannaknowmore" <justsubscribe@gmail.com> wrote in message
news:1130352176.068920.134700@z14g2000cwz.googlegroups.com...
Quote:
Hello,
I have gone through a lot of postings, articles and documentation and
still have not been able to come to a concusion as to what to use as a
unique ID in exchange.
The available options are:
1. DAV:id
2. DAV:uid
3. permanenturl
4. repl-uid

But most of them change when the message is moved to another folder.

Could some please:
* which one is really unique as in it will not change even if the item
is copied to another folder etc.
* tell the different cases when to use what in the above list?
* sample of how to use the above properties in a WEBDAV query?

My initial research says that permaneneturl is most reliable. Please
correct me if I am wrong.

Is there any other property that can be accessed through WEBDAV?

Please respond.
Back to top
Dmitry Streblechenko
Guest





Posted: Thu Oct 27, 2005 12:59 am    Post subject: Re: Unique ID for Exchange Reply with quote

Try to use PR_SEARCH_KEY (0x300B0102) Extended MAPI property -
http://schemas.microsoft.com/mapi/proptag/0x300B0102

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

"wannaknowmore" <justsubscribe@gmail.com> wrote in message
news:1130352176.068920.134700@z14g2000cwz.googlegroups.com...
Quote:
Hello,
I have gone through a lot of postings, articles and documentation and
still have not been able to come to a concusion as to what to use as a
unique ID in exchange.
The available options are:
1. DAV:id
2. DAV:uid
3. permanenturl
4. repl-uid

But most of them change when the message is moved to another folder.

Could some please:
* which one is really unique as in it will not change even if the item
is copied to another folder etc.
* tell the different cases when to use what in the above list?
* sample of how to use the above properties in a WEBDAV query?

My initial research says that permaneneturl is most reliable. Please
correct me if I am wrong.

Is there any other property that can be accessed through WEBDAV?

Please respond.


Back to top
wannaknowmore
Guest





Posted: Thu Oct 27, 2005 10:54 pm    Post subject: Re: Unique ID for Exchange Reply with quote

Thanks Dmitry.
It is an "Extended MAPI property " but I am using WEBDAV and have been
warned against the use of MAPI as it does not fit our scenario (of
having a web service).
Would you still suggest using PR_SEARCH_KEY? Does it have any relation
with Outlook Objet Model as I don't want to use it.
BTW the given link was incorrect .. the correct one is
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/97d7559f-9486-47ee-8f5b-45cf2c840967.asp
Back to top
wannaknowmore
Guest





Posted: Thu Oct 27, 2005 11:02 pm    Post subject: Re: Unique ID for Exchange Reply with quote

Hello Henning,
Items are NOT under my control. So in that case what would you say is a
beter bet (if we put the constraint that messages will not be moved or
modified - except for their status changing from unread to read).
Is DAV:permanenturl the best fit given the situation?
Thanks in advance.
Back to top
Dmitry Streblechenko
Guest





Posted: Thu Oct 27, 2005 11:38 pm    Post subject: Re: Unique ID for Exchange Reply with quote

That's an Exchange property and I don't see that property going away any
time soon.
That wasn't a link, but a DASL schema property name that you would need to
use in your WebDAV code.

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

"wannaknowmore" <justsubscribe@gmail.com> wrote in message
news:1130435690.788516.226280@g47g2000cwa.googlegroups.com...
Quote:
Thanks Dmitry.
It is an "Extended MAPI property " but I am using WEBDAV and have been
warned against the use of MAPI as it does not fit our scenario (of
having a web service).
Would you still suggest using PR_SEARCH_KEY? Does it have any relation
with Outlook Objet Model as I don't want to use it.
BTW the given link was incorrect .. the correct one is
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/97d7559f-9486-47ee-8f5b-45cf2c840967.asp
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
New Topics Powered by phpBB