EWS on push streaming subscription (My Calendar sand Other Calendars)

Hi,

I am developing at app that is able to listen to updates in calendar schedules. Right now an admin account is created (say meetingroomadmin@company.com). Inside this account, there are 2 calendars ie "My Calendar" and "Other Calendars". The "Other Calendars" contain the calendar schedules for the rooms (each represented by its own email address).

Using push streaming subscription, it is able to listen to events from "My Calendar" but does not work on "Other Calendars". Is there any way which I can listen to rooms schedule under "Other Calendars"?

Please let me know if additional info needed.

https://social.msdn.microsoft.com/Forums/getfile/642933 for details.

Appreciate if some snippets can be provided for better clarity.

Thanks and regards,

MelvinLKL


  • Edited by MelvinLKL Wednesday, April 08, 2015 8:10 AM
April 8th, 2015 8:08am

UPDATES (15th April 2015):

I finally managed to get the notification on Calendar changes from "Other Calendars". What I did was to subscribe to Calendar folder as a whole and then create impersonated id for the associated rooms for "Other Calendars". As long as the mentioned rooms with the smtp address are given impersonation rights, then there is no problem getting the notification events.

Snippet:

IList<FolderId> folderList = newList<FolderId>();

folderList.Add(newFolderId(WellKnownFolderName.Calendar));

_service.ImpersonatedUserId = newImpersonatedUserId(ConnectingIdType.SmtpAddress, "demo-mrx-1@companyname.com");

 

            _subscription = _subscription == null ? _service.SubscribeToStreamingNotifications(

             folderList,

             EventType.NewMail,

             EventType.Created,

             EventType.Deleted,

             EventType.Moved,

             EventType.Modified

             ) : _subscription;


Thanks and regards,

Melvin Liew


Free Windows Admin Tool Kit Click here and download it now
April 15th, 2015 12:30am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics