Python - Outlook Response (Accept, Reject, etc.) Date/Time -
i working on project involves pulling lot of appointment/meeting data outlook multiple people. 1 piece of information trying find response each attendee and, if possible, date , time response happened. example, if person x sends me meeting request on 4/21/2015 12:31:00 pm , accepted meeting request @ 4/21/2015 1:30:00 pm, how latter of 2 times? have been browsing microsoft docs (link) have had no luck far.
here quick summary in python:
import win32com.client outlook = win32com.client.dispatch('outlook.application') namespace = outlook.getnamespace('mapi') recipient = namespace.createrecipient('other person') resolved = recipient.resolve() sharedcalendar = namespace.getshareddefaultfolder(recipient, 9) appointments = sharedcalendar.items in range(0,1): print appointments[i] print appointments[i].start print appointments[i].end print appointments[i].organizer print appointments[i].location print appointments[i].duration j in range(0,len(appointments[i].recipients)): print 'recip, status: ' + str(appointments[i].recipients[j]) + ', ' + str(appointments[i].recipients[j].trackingstatustime)
Comments
Post a Comment