Access Shared Calendars Using Exchange Web Services

I am trying to access shared calendars from an exchange using web exchange services, can someone provide me with information on how I can do this?

I tried:

ExchangeService myService = new ExchangeService (ExchangeVersion.Exchange2007_SP1);
myService.Credentials = new NetworkCredential ("user@domain.com", "12345");

But I may not always have passwords for these accounts, and the account I am registered with has shared access to the calendar.

+3
source share
1 answer

I managed to get it working now

Dim _cal As New Microsoft.Exchange.WebServices.Data.FolderId(Microsoft.Exchange.WebServices.Data.WellKnownFolderName.Calendar, New Microsoft.Exchange.WebServices.Data.Mailbox(_otherAddress))
Dim _calendarView As New Microsoft.Exchange.WebServices.Data.CalendarView(_startTime.Date, _endTime.Date.AddDays(1))

For Each appointmentItem As Microsoft.Exchange.WebServices.Data.Appointment In _
    service.FindAppointments( _
    _cal, _
    _calendarView)
Next
+6
source

Source: https://habr.com/ru/post/1795169/


All Articles