SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add a three-state-workflow to a list. I know how to add this via Designer but - to keep manual works low - I want to achieve the same goal by Code.

This is what I need:

  1. Add a three-state-workflow to List xyz
  2. Assign a SharePoint-Group to the middle state (review)
  3. Assign a SharePoint-Group to the final state (approve)

I googled my ass off, but did not find a source which explains how to do this. All I found where information how to completely write my own workflow which I do not want.

Any hints/tipps/urls?

share|improve this question
up vote 1 down vote accepted

This is how to associate WF to list from code:

Then you need to start workflow with your properties:

But I'm not sure how to pass data to 3-state WF

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.