Hi,
I've created a Timer Job which will add an item to a list every 10 minutes. I've also configured a workflow to send one email as soon item is added. This workflow is working fine if I'm adding entry manually. If entry is added by TimerJob then workflow isn't working. Can anyone guide me?
Code of same is:
SPWorkflowAssociation wrkFl = timerJobList.WorkflowAssociations[new Guid("366024bf-1605-43a0-b7dd-03a54623ee79")];
site.WorkflowManager.StartWorkflow(newItem, wrkFl, wrkFl.AssociationData, true);
newItem.Update();
Regards, Vikrant