Exchange Web Services and C#: How to get appointments from shared calendar -


i trying list of appointments day on shared calendar. have done own calendar tied user account. tried getting folderid of shared calendar, haven't been able find it.

i used access calendar using folderid , worked:

console.writeline("listing appointments...");         //open calendar         calendarfolder calendar = calendarfolder.bind(service, wellknownfoldername.calendar);          //query appointments in next 10 days         //finditemsresults<appointment> appointments = calendar.findappointments(new calendarview(datetime.now, datetime.now.adddays(10)));          //find appointments , write out subject         foreach (appointment appointment in service.finditems(new folderid("folderidhere"), new itemview(int.maxvalue)))             console.writeline(appointment.subject); 

i don't know if work access shared folder, , can't figure out folderid of shared folder.

you try :

        calendarmodule calmodule = (calendarmodule)this.application.activeexplorer().navigationpane.modules.getnavigationmodule(olnavigationmoduletype.olmodulecalendar);         foreach (navigationgroup group in calmodule.navigationgroups)         {             navigationfolders folders = group.navigationfolders;             mapifolder otherfolder = null;             items otherfolderitems = null;              (int = 1; <= group.navigationfolders.count; i++)             {                 otherfolder = folders[i].folder; //this not work me                 otherfolderitems = otherfolder.items;             } 

unfortunately, code did not work me, trying access .folder launch exception. found on link : http://social.msdn.microsoft.com/forums/en-us/vsto/thread/4891d3a5-f578-495c-83aa-f5a914474c78/


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -