Changing Location Using Lync SDK
-
Friday, April 20, 2012 5:30 AM
Hi ,
I want to change the location of a Lync Client using Lync SDK. I am using the BeginPublishContactInformation method in client.Self.
The problem is when I run this method the location is shown in the drop down but not reflecting in the location.
If any body encountered same issue please help.
Dictionary<PublishableContactInformationType, object> statusData = new Dictionary<PublishableContactInformationType, object>(); statusData.Add(PublishableContactInformationType.LocationName, location); //statusData.Add(PublishableContactInformationType.Availability,ContactAvailability.Busy); object asyncState = callerClient.Self; IAsyncResult ar = callerClient.Self.BeginPublishContactInformation(statusData, null, asyncState); callerClient.Self.EndPublishContactInformation(ar);
Thanks
All Replies
-
Friday, April 20, 2012 12:34 PMWhat did you mean is the new location is shown in the drop down but you cannot select it????
Thanks,
MOHAMED A. SAKR | Software Development Lead Engineer | EgyptNetwork
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members. Also try to Vote as Helpful -
Monday, April 23, 2012 9:23 AMIt shows in the bottom of Dropdown not at the top. I can select it manually, but when I add location via Lync SDK ,I am expecting it to show it immediately. I have to restart the Lync to show it in the top.
-
Monday, April 23, 2012 2:14 PM
Tried your code and, yeah, it's just adding the location to the drop-down.
Looks like an issue:(
The only workaround I see is using Inspect in conjunction with UIAutomation to set the name of the field directly, but I'm not sure whether it'll work when Lync window is in the tray.
-
Wednesday, April 25, 2012 3:01 PM
There are some actions to be affect the lync client must have to sign out and re sign in
this is one of those
Thanks,
MOHAMED A. SAKR | Software Development Lead Engineer | EgyptNetwork
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members. Also try to Vote as Helpful -
Friday, May 04, 2012 7:41 PM
Lync CU5 fixes an issue related with this problem. Please try to apply it and see if it fixes yours.
CU5:
64bit
http://www.microsoft.com/download/en/details.aspx?id=14490
32 bit
http://www.microsoft.com/download/en/details.aspx?id=25055Xing Du [MSFT]
- Marked As Answer by Kai Strandskov [Msft]Owner Monday, May 07, 2012 8:19 PM

