Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access to outlook shared sub calendar
Message
From
27/01/2011 08:34:38
Marcus Hüneke
Heidelberger Druckmaschinen
Wiesloch, Germany
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Access to outlook shared sub calendar
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01497526
Message ID:
01497526
Views:
118
Hello,

I found a solution to get access to a shared Folder (Calendar) with the Email-address:


olFolderCalendar = 9
oOutlook = Createobject('outlook.application')
oNameSpace = oOutlook.getnamespace('MAPI')
oItems = oDefaultFolder.items

OutlookUser = oNameSpace.CreateRecipient("e.mail@addresse.com")
If Not OutlookUser.Resolve
=messagebox("User not found!")
return
else
OutlookCalendar = oNameSpace.GetSharedDefaultFolder(OutlookUser, olFolderCalendar)
oItems = OutlookCalendar.items
For ix = oItems.Count To 1 Step -1
if oItems.Item(ix).subject = "Testappointment"
lDelete = oItems.Item(ix).Delete
endif
Next ix


So far so good. With this solution I can only get access to the Default calendar of the user. But I now need access to a shared sub calender of him. How can I get access to his shared subcalendar (created under inbox - I have all rights)?
If I create a sub calendar under my own inbox, how can I get access to this folder?

Thanks for your help

Marcus
Reply
Map
View

Click here to load this message in the networking platform