How to enable a Visual Studio workflow on SharePoint and attach it to a document library
© 2008-2010 DocumentManagementWorkflowInfo.com - Read our Copyright Notice
Learn how to enable a custom Visual Studio workflow on SharePoint and associate a custom Visual Studio workflow with a document library.
Before you can use a Visual Studio workflow on a list, library, or content type in SharePoint, the workflow’s feature must have been installed and activated on a SharePoint site.
Checking whether a workflow has been installed and activated
To check whether a workflow has been installed and activated:
- On the Site Actions menu of the root site of a SharePoint site collection, click Site Settings.

Site Settings menu item on the Site Actions menu of a SharePoint site. - On the Site Settings page under Site Collection Administration, click Site collection features.

Site collection features on the Site Settings page of a SharePoint site. - On the Site Collection Features page, check whether the name of the workflow is present and whether its Status is set to Active. If its Status is not set to Active, click the Activate button to activate the workflow.

Workflow features on Site Collection Features page of a SharePoint site.
Attaching a Visual Studio workflow to a document library
To associate a Visual Studio workflow with a document library:
- Go to the document library to which you want to add a workflow.
- On the Settings menu, click Document Library Settings.

Document Library Settings menu item on the Settings menu of a document library on a SharePoint site. - On the Customize Document Library page under Permissions and Management, click Workflow settings.

Workflow settings on the customize page of a SharePoint document library page. - On the Add a Workflow page, select a workflow template and follow the instructions on the page to configure the workflow.
The steps described above also apply when you want to attach a SharePoint out-of-the-box workflow to a document library.
Related Articles
Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent of the owner of DocumentManagementWorkflowInfo.com. The techniques demonstrated in this article may be used within any SharePoint project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the owner of DocumentManagementWorkflowInfo.com.
