Search code examples
user-interfacecontactslyncsuppression

Lync availability for users who are not contacts


I am writing a custom Lync client with UI suppression enabled. One of the components that the client needs to have is an employee search form, which will be used for adding contacts and inviting employees to a conversation. This form will load the employees in a DataGridView and display their availability (online, offline, idle, etc.).

However, the problem is that the availability only seems to correctly display for users that I am already a contact with. Everyone else will have their ContactAvailability set to None.

Is it possible to get the availability of a Lync user who is not a contact? Thanks in advance.


Solution

  • I found the solution. I needed to use the ContactSubscription class: http://msdn.microsoft.com/en-us/library/hh380135.aspx

    This link also proved helpful: http://rcosic.wordpress.com/2011/11/02/starting-with-lync-clients-api/