Quantcast
Channel: Exchange Server 2010 forum
Viewing all articles
Browse latest Browse all 19436

EWS API - Retrieving User profile of a given inbox

$
0
0


Hi,

My app needs user profile details like DisplayName, profile Image ( if exists ), User status ( Offline, online )

and the user message like "What's on your mind"

I tried hard using EWS APi to do it


For example user's mail box is : x@x.com

How to retrieve the DisplayName ?

Ans : I used ExchangeService.ResolveName and retrieved the details. But the ItemId of the contacts is always Null. So, when I use it further I get an exception

  NameResolutionCollection matchingnames = service.ResolveName("X@X.com", ResolveNameSearchLocation.DirectoryOnly, true);
            foreach (NameResolution item in matchingnames)
            {

            }

I am always settings returncontactdetails = true so that I get full contact details.

But I don't get all details, even if the profile has picture, I don't get one.

Is there something I am missing ??



Viewing all articles
Browse latest Browse all 19436

Trending Articles