Outlook Calendar AutoAccept and Redemption

  • Thread starter Thread starter Rick H
  • Start date Start date
R

Rick H

I'm trying to determine if a user has autoaccept set in outlook 2003
and 2007 using VB6 with Redemption 4.4
Here is the code:

Dim CalendarOptions As Object
Dim Session As Object
Set Session = CreateObject("Redemption.RDOSession")
Session.Logon
Set CalendarOptions = Session.Stores.DefaultStore.CalendarOptions
lb_aa = CalendarOptions.AutoAccept

This works fine in Outlook 2002 but in newer version of outlook I get
back the following error at the last line

Run-Time Error '-2147221233(8004010f)':
Error in HrGetOneProp(PR_FREEBUSY_ENRTYIDS):
MAPI_E_NOT_FOUND

Is there a different way of getting the calendar options in 2003 and
2007?
 
CalendarOptions property currently only works for the online Exchange stores
(such as returned by RDOSession.GetSharedMailbox).
Send an e-mail to my private address if you want an updated version.

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