EWS API to get shared calendars "Other Calendars" RRS feed

  • Question

  • Guys , I've been struggling to get the Shared calendar details using EWS API (Java ) .

    I am new to Exchange Web service .

    Here is the scenario.

    We have "SHA" , A , B & C users. The users A,B & C has shared their calendar to 'SHA' user with all permissions and and also edit too. So that the calendars of A,B & C is displaying in the SHA calendar as "Other Calendars" .

    I am trying to get the appointment details of these calendars through SHA user by using EWS API (Java based) . i tried all the possible scenarios and googled but no luck . 

    Please help to resolve this and also we dont want to have any "Shared MailBox" concept.

    And also i know A/B/C mail ids shared with SHA.

    I tired like the below code but no luck.

    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
            ExchangeCredentials credentials = new WebCredentials("", "xxxxxxxx");
            service.setUrl(new URI(""));

    service.findAppointments(new FolderId(WellKnownFolderName.Calendar, Mailbox.getMailboxFromString("")), new CalendarView(startDate, endDate));

    Highly Appreciated if any could help with any sample source in JAVA.

    I am using Office 365 web app and subscribed Office 365 business Premium.


    • Edited by Mani777 Monday, November 21, 2016 9:10 PM
    Monday, November 21, 2016 8:55 PM

All replies

  • So what happens when you run the code ? do you get an errors ? what are those errors


    Tuesday, November 22, 2016 1:24 AM