Controlling start options for SharePoint workflows in Visual Studio
When you build a reusable SharePoint workflow, it's useful to be able to control which start options are available. For example, if you only want your workflow to run once when an item is created, it makes sense to disable the "Changing an item will start this workflow" option. SharePoint Designer provides some handy checkboxes that you can use to control your start options: However, it's not immediately obvious how you can set these options for a Visual Studio workflow as the options aren't documented anywhere. To control the start options for a SharePoint workflow in Visual Studio, you need to edit the feature element file that deploys your workflow. Within the feature element file, you need to add properties to the File element that deploys your Workflow.xaml file: <? xml version = " 1.0 " encoding = " utf-8 " ?> < Elements xmlns = " http://schemas.microsoft.com/sharepoint/ " > < Modu