SharePoint Document Workflow: Programmatically Creating a User Task

Sign in to queue


The question that I get most often when I talk to developers about SharePoint Document Workflow is on Sending and Tracking tasks for the people participating in a document workflow.  So, in this 4th part of the series that I am doing on "Building Document Workflow" in SharePoint/MOSS 2007, I am demonstrating how to send a basic SharePoint Task with Visual Studio and at the end you will see how to connect an Outlook Client to the Portals Task List, so that a user can see the tasks within their Outlook desktop Client.

For the Source Code: Click here

For a High Resolution version: Click here (to go to my blog)

You can download the Freely Downloadable "Building Custom Document Workflow with MOSS with Visual Studio 2008" workshops (Developer Content) on my blog ( under the SharePoint Tag, or directly by clicking here.

My other SharePoint videos:

  • Enabling (incoming/outgoing) email for SharePoint/MOSS 2007 servers (Click here to see it)
  • Extracting document details from within a workflow (Click here to see it)
  • Extracting email addresses and sending emails (Click here to see it)
  • Programmatically Creating a User Task within a workflow (Click here to see it)
  • Programmatically Escalating an Overdue Task with Visual Studio (Click here to see it)
  • Building an Approval Workflow with SharePoint/MOSS 2007 and VS 2008 (Click here to see it)
  • Building a Multilevel Approval Workflow with SharePoint/MOSS 2007 and VS2008 (Click here to see it) 
  • Using Active Directory Search/Lookups within SharePoint Workflow's to find users (Click here to see it)

Note: If you have questions/comments, please leave them on my blog at this link, as I do not monitor this feedback URL.



Download this episode

The Discussion

  • User profile image
    Ricardo Irineo

    Greetings Robert, I was wondering, int the video you show how to connect outlook to a sharepoint task list, I did that but doing it allows me to see task that aren't assigned to me, is it possible to filter the task I export to Outlook to only show those assigned to the current user?, I know i can apply filters in outlook but it's not practical.


    Thanks in advance!.

  • User profile image



    Is there a way to program an auto reminder in the SharePoint Workflow (say 1 hr to the expected delivery time) to inform the user that he/she has 1hr left to execute task. Especially when the user is always on Microsoft Outlook.


    Thanks in advance!

  • User profile image

    I have a problam with sharepoint. I want to alert to approver in workflow in sharepoint 2007.
    How do I do?
    Thanks a lots.

Add Your 2 Cents