Declarative workflows cannot automatically start if the triggering action was performed by System Account. Canceling workflow auto-start.
I was developping a sequential workflow wich added a new item in a list that has an autostart workflow associated. However, the workflow is not started. When i try to add a new item in the sharepoint using an account, other than the system account, the workflow is starting correctly. The reason is "if we install SP1 package, then declarative workflows can no longer be triggered by the SharePoint System account" as there is the possibility of security vulnerability. So, they didn't give access to run the declarative workflows under the System account. So, to run that workflow we have to add the item using another user token in our code. Here is the code to use : SPUserToken tokenCingecom = workflowProperties.Web.AllUsers["UserLogin"].UserToken; using (SPSite impersonatedSite = new SPSite(workflowProperties.SiteId, tokenCingecom)) { // adding the user }