Monthly Archives: September 2011

Getting SP Custom Workflow TaskProperties.SendEmailNotification to send Emails

If you want SharePoint Custom workflow to send emails on task creation, what you need is set SendEmailNotification  to true on the task creation activity.

However if you are using out-of-the-box “Workflow Task” list for workflow tasks, this may not work right away as you expect.  The tick to get this to work is set  “Send e-mail when ownership is assigned” to “Yes” on the Task list properties.

That can be by,

  1. Navigate to Workflow Task List Settings.
  2. Access the  “Advanced Settings”
  3. Set “Send e-mail when ownership is assigned” to “Yes”
If you are using a custom list  for workflow tasks set  EmailAssignTo=”TRUE” on the schema.xml.
<List xmlns:ows=”Microsoft SharePoint”
      Title="Workflow Tasks"
      Type="107" BaseType="

Lync 2010 Skill based Search Extended

One of  the new features that have being introduced to new version of MS Lync is Skill based search. Which perform search for People in SharePoint 2010 Profiles instead of the contact lists or directory on the Lync Server.

Setting up the Lync to be able to integrate with SharePoint is not that hard as one would imaging.  But there are few short comings on this version of the integration which may need some extra code development efforts to get them to fully functional with what you may need.

In this post I will be discussing one of the short coming that I faced and how I overcome that. But this may not be a shot coming, but with my efforts I failed to get it work the way I wanted it to be. Also this may not be the only solution and I am more than happy to accept any another better ways of doing this. The basic functionality of Lync-SP skill based search is to provide users with the ability to perform people searches with Lync Client against “built-in” or out of the box SharePoint user profile fields such as “Ask Me About”,  etc . When I said built-in, I meant the default set of user profile properties. However my requirement is bit beyond that. What I wanted was to have couple of custom SharePoint Managed Metadata Columns in user profile and Lync client to be able to perform people search against all the built-in properties plus new custom fields.

Here is the solution that I have been asked to implement by one of my colleague.

  1. Have the normal Skill Based Search working
  2. Hide the one of the built-in fields form the SharePoint MySites.
  3. Let the hidden field being populated with the content on those custom fields.
  4. Have the SharePoint Search crawler to crawler to pick content form the hidden field and ready being picked on search results by the People Search.

The hardest part that I faced is to sync up the hidden field with the content form the custom fields. The initial idea that came to my mind is to have a SharePoint Event Receiver to capture any updates to user profile custom fields and trigger the sync on that event. Unlike usual SharePoint fields no Event Receivers can be wired up with User Profile Properties. So what most of the sites suggesting to use is a Timer Job to capture all the updated profiles and have it scheduled for frequency that will suit your requirement.

To accomplish this following are the steps that I followed,

  1. Setup User Profiles Sync and My Sites with SharPoint 2010
  2. Setup the Search Center to be able to search for People
  3. Configure the Lync Server with Public and Intranet URLs for Search Center and Search results page
  4. Implement a Timer Job to Sync up fields on change of another field( here the choosen out-of-the-box field will be updated with content on the custom user profile property on which the skill search needs to be run against)