Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting access to a calendar in Outlook
Message
From
27/01/2011 08:28:31
Marcus Hüneke
Heidelberger Druckmaschinen
Wiesloch, Germany
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Miscellaneous
Thread ID:
01492532
Message ID:
01497525
Views:
64
Hello,

I found a solution to get access to a shared Faolder. I need 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform