O'Reilly logo

Microsoft SharePoint 2010 Development with Visual Studio 2010: Expert Cookbook by Balaji Kithiganahalli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Associating a workflow to a content type

We added metadata columns to our content type, we added a document template that provides the common format for uploading project proposals to the library, and in this recipe we will add "Approval workflow" to our content type.

Approval Workflow is out-of-the-box workflow available in the SharePoint server. The same steps will work in case you want to associate custom workflows that we developed in Chapter 2, Workflows.

Getting ready

You should have completed the previous recipes successfully.

How to do it...

  1. If you have closed Visual Studio IDE, launch it as an administrator.
  2. Open the previously created ProjectProposal solution.
  3. Open Feature1.EventReceiver.cs file and add code to associate the workflow before ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required