Home > Development, Lync 2010, SP 2010 > The basics of a Lync 2010 & SharePoint 2010 Web Part

The basics of a Lync 2010 & SharePoint 2010 Web Part

Lets make a web part that’s extremely simple to show you the basics of Lync 2010 and SharePoint 2010 development.  The web part will use Lync Controls (link) to display the current logged-in user’s picture, status, and allow them to change their status.  Lets get to it!

 

To Start, make sure you have the Lync 2010 SDK, UCMA 3.0 SDK, SharePoint SDK, SharePoint 2010, and Lync 2010 installed on the same server…its pretty ridiculous that you need all of that just to build this…I wish it was a little more simpler that that.

 

You will be building a Silverlight application using the project template provided by the SDK.  You can develop your .XAP file in that solution, and when you are finished, add it using the OOTB Silverlight Web Part (or add to your Visual Web Part).

 

For your first try at a Lync 2010 Web Part, I would use the controls that have a prefix of “MYxxxx”.  Drag the MyStatusArea Control onto your canvas for your first web part.  This is a good sample, because it will automatically match up your sip address (required for Lync Controls to show people info).  If all goes well, you should see your info in the control below.  Oh yea… don’t forget to add it to a Silverlight Web Part for the full effect =)

 

MyStatusArea Control

 

That’s all good…but I’m sure you want to do something a little more dynamic.  To do that, you will need to understand the concept of a SIP address as it relates to Lync 2010.  That address is the “key” that binds your Lync Control to a Lync Object (person, or asset) so that you can see the status and interact with that object.  The sip address is formatted in a specific way…but can vary between implementations.  Its usually in the form of an email address.

 

You can use another control, called a “CustomContactList” to display a custom amount of users in a list.  This control is great, because we can bind it to a collection of objects and bind properties of that object to the properties of that control (so…have a property called sip and bind it to the SOURCE property of the CustomContactList).  This is what it looks like when completed.

 

CustomContactList Control

 

So however you get your list of users…you can bind them to the source property and easily see those users in your custom application.  Theres about 20 controls that work with Lync and I’m sure there are more… endless possibilities for custom applications.  The final piece to this puzzle is to use the Silverlgiht Client Object Model to query data from SharePoint.  Thats for the next post… =)

Advertisements
Categories: Development, Lync 2010, SP 2010
  1. October 9, 2011 at 4:32 am

    In view of the cut-throat competition in the cyberspace, many small as well as large business concerns feel the necessity to best represent them on the Internet and print media. They look for an expert web and graphic design firm that can satisfy their specific needs and boost their online presence. A successful website is generally bundled with attention-getting layouts, essential functionality, best possible user-friendliness and creative brand image. There are many Cairns web design firms that ensure the presence of all aforesaid attributes in their web works.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: