5

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?

1 Answer 1

2

This is how to associate WF to list from code: http://www.sharepointkings.com/2008/09/how-to-attach-workflow-to-list-from.html

Then you need to start workflow with your properties: http://www.sharepointkings.com/2008/09/how-to-start-workflow-programmatically.html

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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