Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > Confusion about unique ID of public contact
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 20th April 19:40
us
External User
 
Posts: 1
Default Confusion about unique ID of public contact



I need to know which public contact unique ID field can be
accessed from the following places:
- VBScript OnSave event sink on exchange server
- VBScript behind Outlook 2002 form

Outlook's EntryID is accessible from the Outlook object
model but not from CDO/ADO (it seems).

DAV:id is accessible from CDO/ADO but not from the Outlook
contact form.

Is it just me or is the Outlook/Exchange platform VERY
tricky to work with?! I'm getting frustrated. I have spent
3-4 days searching Google groups & the Exchange SDK. There
are a lot of other threads addressing similar concerns but
I have yet to find an answer to this specific question.
  Reply With Quote


  sponsored links


2 20th April 19:41
glen scales [mvp]
External User
 
Posts: 1
Default Confusion about unique ID of public contact



To access the PR_ENTRYID from CDOEX/ADO have a look at
http://support.microsoft.com/default.aspx?scid=kb;en-us;298401 . The
property is an array of bytes if your trying to do this in VBS you need
covert it to a string using something like arrayconvert from
http://support.microsoft.com/default.aspx?scid=kb;en-us;250344 . eg

set apptobj = createobject("ADODB.Record")
apptobj.open "http://server/exchange/mailbox/Contacts/contact.EML",,3
Set cnvt = CreateObject("ADs.ArrayConvert")
wscript.echo
cnvt.CvOctetStr2vHexStr(apptobj.fields("http://schemas.microsoft.com/mapi/pr
optag/x0FFF0102").Value)

If you want to make the DAV:id avaible in Outlook you can do this by using a
form have a look at
http://support.microsoft.com/default.aspx?scid=kb;EN-US;160799 and
http://blogs.msdn.com/exchange/archive/2004/05/26/142607.aspx .

Cheers
Glen
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666