> I don't understand the code very well. How I getfreebusy state for a
> mailbox which exists in the system? In this code you create a
> recipients, don't you?
Thanks for helping me again...
This is the code I have add
strProfileInfo = g_cServidorExchange & vbLf &
"SLExchange@DESARROLLO.desarrollo.es"
Set ObjSession = New Session
ObjSession.Logon g_cPerfilExchange
Set ObjMessage = ObjSession.Inbox.Messages.Add
Set ObjRecipColl = ObjMessage.Recipients
'ObjBuzon.Nombre is the Exchange alias of the user whose state I want to get
Set ObjOneRecip = ObjRecipColl.Add(ObjBuzon.Nombre)
'Specify the date/time of the beginning of the first time slot.
StartTime = Format$(Now, "Short Date")
'Specify the date/time of the end of the last time slot.
EndTime = Format$(DateAdd("m",3,Now),"Short Date")
Interval = 1
FreeBusy = ObjOneRecip.GetFreeBusy(StartTime, EndTime, Interval)
But when the program try to get the freebusystate it appears the error:
[Collaboration Data Objects - [MAPI_E_NO_SUPPORT(80040102)]]
Do you know what I'm doing bad.
Thanks again for you help..
> "Jose Enrique" <eaguado@jusan.es> wrote in
> > I don't understand the code very well. How I getfreebusy state for a
[quoted text clipped - 13 lines]
>
> -- dan
Dan Mitchell - 31 Jul 2006 20:42 GMT
> strProfileInfo = g_cServidorExchange & vbLf &
> "SLExchange@DESARROLLO.desarrollo.es"
> Set ObjSession = New Session
> ObjSession.Logon g_cPerfilExchange
This should be ObjSession.Logon profileInfo := strProfileInfo, if
you're trying to use dynamic profiles. Or if g_cPerfilExchange is the
name of a profile, you don't need strProfileInfo.
> [snip]
> FreeBusy = ObjOneRecip.GetFreeBusy(StartTime, EndTime, Interval)
>
> But when the program try to get the freebusystate it appears the
> error: [Collaboration Data Objects - [MAPI_E_NO_SUPPORT(80040102)]]
> Do you know what I'm doing bad.
It looks fine, and your code works when I try it. Are you sure that
ObjOneRecip is a real person? (can you read, say, the Name from that
person, or something else to make sure that it's working).
Does the person that you're trying to get freebusy info for have it
turned on? (if you use Outlook to try and book a meeting with them, can
you see when they're available by using the Scheduling tab in the 'new
meeting' window)?
-- dan