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

Probably a silly question: I have a vs2010 project with workflows in a site scoped feature. When i deploy through visual studio the workflows are associated with lists. However when i deploy manually they don't. I'm guessing i have to associate through an event receiver or did i miss something?

share|improve this question
up vote 1 down vote accepted

To associate a custom workflow to a list, you can use Features. Write a Feature Receiver and write code to associate the Workflow to the List.

Here is sample code to associate a workflow :

You can also use AssociationCategories Element in work flow definition. See here for details :

share|improve this answer

if you setup workflow manually you should do these steps:

  • Open List settings Tab on ribbon
  • Click on arrow under workflow settings
  • Click on Add workflow
  • Choose your workflow from the list
  • Setup workflow settings
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.