Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

EWS API to get shared calendars "Other Calendars"

$
0
0

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("sha@xxxxx.onmicrosoft.com", "xxxxxxxx");
        service.setCredentials(credentials);
        service.setUrl(new URI("https://outlook.office365.com/EWS/Exchange.asmx"));

service.findAppointments(new FolderId(WellKnownFolderName.Calendar, Mailbox.getMailboxFromString("a@xxxxx.onmicrosoft.com")), 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.

 




Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>