CDOEX Named Properties
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
CDOEX Named Properties

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





Posted: Thu Dec 01, 2005 5:58 pm    Post subject: CDOEX Named Properties Reply with quote

I need to access the Appointment Global Id at named property via CDOEX.

({6ED8DA90-450B-101B-98DA-00AA003F1305}, 0x23, PT_BINARY)

which contains the actual property tag that needs to open. Something of a
two step process. One I get the named property tag value (x8195 or something
close)

I Retrieve a property tag is simply:

http://schemas.microsoft.com/mapi/proptag/x81950102 (returned property tag)

however based on each user the actually property varies. I need a way via
CDOEX value of the named property then get the property value. Any ideas?

MAPI is one way, but is difficult to get to other exchange user profiles
stores, without adding them to the profile of the account I using to do this.
Doing this will create a host of management problems in MAPI.

Thanks

Blair

--
Blair Nygren
Client Profiles Inc.

Back to top
Glen Scales [MVP]
Guest





Posted: Fri Dec 02, 2005 9:58 am    Post subject: Re: CDOEX Named Properties Reply with quote

You should be able to get the named property by using
http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x23
this is a binary property so your going to get binary data returned. You can
use something like this to convert it to hex

eg

set appt = createobject("CDO.Appointment")
appt.datasource.open "http://servername/exchange/mailbox/Calendar/appt.EML"
wscript.echo
Octenttohex(appt.fields("http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x23").value)

Function Octenttohex(OctenArry)
ReDim aOut(UBound(OctenArry))
For i = 1 to UBound(OctenArry) + 1
if len(hex(ascb(midb(OctenArry,i,1)))) = 1 then
aOut(i-1) = "0" & hex(ascb(midb(OctenArry,i,1)))
else
aOut(i-1) = hex(ascb(midb(OctenArry,i,1)))
end if
Next
Octenttohex = join(aOUt,"")
End Function

Cheers
Glen


"Blair Nygren" <BlairNygren@discussions.microsoft.com> wrote in message
news:350E3862-C9C3-471C-99B6-83DDB9C3979C@microsoft.com...
Quote:
I need to access the Appointment Global Id at named property via CDOEX.

({6ED8DA90-450B-101B-98DA-00AA003F1305}, 0x23, PT_BINARY)

which contains the actual property tag that needs to open. Something of a
two step process. One I get the named property tag value (x8195 or
something
close)

I Retrieve a property tag is simply:

http://schemas.microsoft.com/mapi/proptag/x81950102 (returned property
tag)

however based on each user the actually property varies. I need a way via
CDOEX value of the named property then get the property value. Any ideas?

MAPI is one way, but is difficult to get to other exchange user profiles
stores, without adding them to the profile of the account I using to do
this.
Doing this will create a host of management problems in MAPI.

Thanks

Blair

--
Blair Nygren
Client Profiles Inc.
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