Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting access to a calendar in Outlook
Message
De
27/01/2011 08:28:31
Marcus Hüneke
Heidelberger Druckmaschinen
Wiesloch, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Divers
Thread ID:
01492532
Message ID:
01497525
Vues:
65
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform