28 May 2010

Associate workflow to a custom contentType

How to associate a workflow to a custom contentType

If you want to attach your custom workflow to a content type (single, multiple or all of the content types.. below are samples..

Associate workflow with a single contentType
Notice the highlighted portion which is a ';' delimited two part entry.
First is the type of category and second is the id of the entity. In this example, the category is content type and I have specified the id of the content type that should be available for this workflow.

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
     Description="This workflow will .."

Associate workflow with a multiple contentType
notice that every set of category is seperated by the delimiter ';#'

Associate workflow with a all contentTypes

Associate workflow with a all contentTypes and Lists


No comments:

Post a Comment