none
EWS resolve Name for multiple Users RRS feed

  • Question

  • Dears,

    We are using .NET Core application for one of our project. Trying to retrieve basic user information(display name, contact, designation, company) for specific list of users.  Is it possible to retrieve in one call(like in Expected section below) or we need to call in loop?

    var exchange = new ExchangeService(ExchangeVersion.Exchange2016);

    Works:

    var allContacts = exchange.ResolveName("User1", ResolveNameSearchLocation.DirectoryOnly, true);

    Expected:

    var allContacts = exchange.ResolveName("User1;User2", ResolveNameSearchLocation.DirectoryOnly, true);

    Tuesday, August 20, 2019 12:01 PM

All replies

  • No ResolveName can't be batched that way, the best method is just make the requests asynchronous and update your UI as the responses come in dynamically.

    If its Office365 then you can batch requests against the Graph as an alternate.

    Cheers
    Glen

     
    Thursday, August 22, 2019 6:52 AM