i have created a project with visual studio, to start every day a workflow on every item in a list.
when i place my code in a webpart and i run the code on 1 item, the workflow will start normally.
when i place my code in the timer job in the execute method, the timer job will finnish normally but there will be not workflow started.
public override void Execute(Guid contentDbId)
SPWorkflowManager objWorkflowManager = null;
SPWorkflowAssociationCollection objWorkflowAssociationCollection = null;
using (SPSite mySiteCollection = new SPSite(siteurl))
using (SPWeb mySite = mySiteCollection.OpenWeb())
View Complete Post