Bonjour,
Le code ci-dessous me permet de lister tous les appointements contenus dans un calendrier Outlook:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import win32com.client
from win32com.client import Dispatch, constants
from datetime import *
 
outlook = win32com.client.Dispatch("Outlook.Application")
namespace = outlook.GetNamespace("MAPI")
appointments = namespace.GetDefaultFolder(9).Items
 
appointment = appointments.GetFirst()
while appointment:
    print "Debut : " + unicode(appointment.Start) + "Fin : " + unicode(appointment.End)
    start = str(appointment.Start)
    start = datetime.strptime(start, "%m/%d/%y %H:%M:%S")
    start = start.strftime("%d-%m-%Y")
    print "DATE FORMATEE //// " + start
    print "Sujet : " + appointment.Subject
    print " Corps : " +appointment.Body
    print " Réccurence : " + unicode(appointment.IsRecurring)
    #print appointment.Invitation Comment appeller la liste des invités ???
 
    appointment = appointments.GetNext ()
mon probleme: a la ligne 23, je voudrais capter la liste des invités pour chaque appointement, mais je ne trouve pas l'intitulé exact de l'objet à employer

Donc, si quelqu'un aurait la réponse, je lui en serais très reconnaissant

Merci d'avance,

Pierre