none
Retrieve all calendar appointments from all users using EWS (Exchange 2010) RRS feed

  • Question

  • Hi!

    I'm working on a client application that will run in an on-prem Exchange Server 2010.

    That app should be able to retrieve all calendar appointments for all users in server.

    I have found some ways to do it, but all of them needed to iterate over all available emails and i would like to get a bunch of data of multiples accounts (that I have permission) in a single call.

    Is it possible?

    Wednesday, December 13, 2017 6:36 PM

Answers

  • No its not all EWS requests are made in the context of a Mailbox so you will need to make one call per mailbox. Batching can be used to help performance but this is only applicable for certain types of operations.

    Cheers
    Glen

    • Marked as answer by Tiago Barroso Thursday, December 14, 2017 11:59 AM
    Thursday, December 14, 2017 12:47 AM
  • Refer https://blogs.msdn.microsoft.com/emeamsgdev/2015/02/25/powershell-search-for-appointments/
    • Marked as answer by Tiago Barroso Thursday, December 14, 2017 11:59 AM
    Thursday, December 14, 2017 6:24 AM

All replies

  • No its not all EWS requests are made in the context of a Mailbox so you will need to make one call per mailbox. Batching can be used to help performance but this is only applicable for certain types of operations.

    Cheers
    Glen

    • Marked as answer by Tiago Barroso Thursday, December 14, 2017 11:59 AM
    Thursday, December 14, 2017 12:47 AM
  • Refer https://blogs.msdn.microsoft.com/emeamsgdev/2015/02/25/powershell-search-for-appointments/
    • Marked as answer by Tiago Barroso Thursday, December 14, 2017 11:59 AM
    Thursday, December 14, 2017 6:24 AM
  • Thank you Glen!

    That's true, I figure it out that EWS works "in context of mailbox" and then I realize that "administrative searches" are not the aim of EWS.  

    Thursday, December 14, 2017 12:07 PM
  • Thank you Nasim!

    I'll try using PowerShell calls in C#, I'm confident it's the best way to do it.
    Thursday, December 14, 2017 12:10 PM
  • Nasim,

    Even using PowerShell it gonna use "one-per-one" iteraction. Seems there's no way to fetch all data over all users in a single search. 
    Thursday, December 14, 2017 2:51 PM